1
0
mirror of https://github.com/writeas/go-writeas.git synced 2025-07-27 15:18:28 +00:00
go-writeas/auth_test.go
Abhinav Gupta 993ee50b3d style: Run goimports on everything
Similar to writeas/writeas-cli#22, this change runs goimports on all
files and changes the recommendation in the Contributing section to do
the same.
2018-12-25 09:27:00 -08:00

20 lines
306 B
Go

package writeas
import "testing"
func TestAuthentication(t *testing.T) {
dwac := NewDevClient()
// Log in
_, err := dwac.LogIn("demo", "demo")
if err != nil {
t.Fatalf("Unable to log in: %v", err)
}
// Log out
err = dwac.LogOut()
if err != nil {
t.Fatalf("Unable to log out: %v", err)
}
}