mirror of
https://github.com/writeas/go-writeas.git
synced 2025-07-27 15:18:28 +00:00

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.
20 lines
306 B
Go
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)
|
|
}
|
|
}
|