コード例 #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)