Example #1
0
 def test_lights(self):
     result = Group.fromDict(self.input)
     self.assertEquals(["1", "2"], result.lights)
Example #2
0
 def test_action(self):
     result = Group.fromDict(self.input)
     self.assertEquals(100, result.action.bri)
Example #3
0
 def test_basic(self):
     result = Group.fromDict(self.input)
     self.assertEquals('bedroom', result.name)