diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-18 23:30:40 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-18 23:30:40 -0500 |
commit | a95deb0690428f3c793ae7b4e2401ff56de72343 (patch) | |
tree | f16db5adb2f62fa034f962445ccb3179905d2bb7 /group_test.go | |
parent | 4715205f959490a55b8a2ad8aef56ce503709dbb (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 'group_test.go')
-rw-r--r-- | group_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/group_test.go b/group_test.go index 8fcbd09..ea13d64 100644 --- a/group_test.go +++ b/group_test.go @@ -13,7 +13,8 @@ import ( ) func TestGetGroups(t *testing.T) { - bridge, _ := NewBridge("192.168.1.128", "427de8bd6d49f149c8398e4fc08f") + bridge, _ := NewBridge("192.168.1.128") + bridge.Login("427de8bd6d49f149c8398e4fc08f") groups, _ := bridge.GetGroups() for group := range groups { fmt.Println(groups[group]) |