offline-twitter/scraper/authentication_test.go
2022-12-30 21:23:45 -05:00

23 lines
384 B
Go

package scraper_test
import (
"offline_twitter/scraper"
"testing"
"github.com/stretchr/testify/assert"
)
func TestAuthentication(t *testing.T) {
assert := assert.New(t)
username := "offline_twatter"
password := "S1pKIW#eRT016iA@OFcK"
api := scraper.NewGuestSession()
api.LogIn(username, password)
assert.True(api.IsAuthenticated)
assert.NotEqual(api.CSRFToken, "")
}