Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10455473
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
467 B
Subscribers
None
View Options
diff --git a/auth_test.go b/auth_test.go
new file mode 100644
index 0000000..3c78c7e
--- /dev/null
+++ b/auth_test.go
@@ -0,0 +1,21 @@
+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)
+ }
+}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Jan 31, 9:54 AM (1 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3145731
Attached To
rWGO writeas-go
Event Timeline
Log In to Comment