예제 #1
0
파일: test_object.py 프로젝트: ralphm/txhue
 def test_lights(self):
     result = Group.fromDict(self.input)
     self.assertEquals(["1", "2"], result.lights)
예제 #2
0
파일: test_object.py 프로젝트: ralphm/txhue
 def test_action(self):
     result = Group.fromDict(self.input)
     self.assertEquals(100, result.action.bri)
예제 #3
0
파일: test_object.py 프로젝트: ralphm/txhue
 def test_basic(self):
     result = Group.fromDict(self.input)
     self.assertEquals('bedroom', result.name)