aboutsummaryrefslogtreecommitdiff
path: root/bridge_test.go
blob: 32e65df2a771ac6dc9b11b0d93d88404d2473696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package hue

import (
    "log"
    "testing"
)

func TestNewBridge(t *testing.T) {
    bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
    log.Println(bridge)
}

func TestCreateUser(t *testing.T) {
    user, _ := CreateUser(NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207"), "linux")
    log.Println(user)
}