aboutsummaryrefslogtreecommitdiff
path: root/schedule_test.go
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-18 23:30:40 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-18 23:30:40 -0500
commita95deb0690428f3c793ae7b4e2401ff56de72343 (patch)
treef16db5adb2f62fa034f962445ccb3179905d2bb7 /schedule_test.go
parent4715205f959490a55b8a2ad8aef56ce503709dbb (diff)
Implemented Bridge.Login() func that will assign Bridge.Username and create the user if it does not exist. Also convered more functions to Bridge.func()
Diffstat (limited to 'schedule_test.go')
-rw-r--r--schedule_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/schedule_test.go b/schedule_test.go
index 4aec8c6..3a4cc59 100644
--- a/schedule_test.go
+++ b/schedule_test.go
@@ -12,12 +12,14 @@ import (
)
func TestGetAllSchedules(t *testing.T) {
- bridge, _ := NewBridge("192.168.1.128", "427de8bd6d49f149c8398e4fc08f")
+ bridge, _ := NewBridge("192.168.1.128")
+ bridge.Login("427de8bd6d49f149c8398e4fc08f")
_, _ = bridge.GetAllSchedules()
}
func TestGetSchedule(t *testing.T) {
- bridge, _ := NewBridge("192.168.1.128", "427de8bd6d49f149c8398e4fc08f")
+ bridge, _ := NewBridge("192.168.1.128")
+ bridge.Login("427de8bd6d49f149c8398e4fc08f")
_, _ = bridge.GetSchedule("4673980164949558")
}