def test_23_power(self): tl = Entity('POWER-0', EntityType.find(100), 'Power plug') tl.assigned_id = 1 tl.last_checkin = time.time() - 3600 # one hour before tl.save() self.printall() print tl
def test_20_light_create(self): tl = Entity('LIGHT-1', EntityType.find(101), name='Sample light') tl.assigned_id = 2 tl.state = STATE_ON tl.last_checkin = time.time() tl.save() self.printall() print tl