def test_lastupdatedNone(self): result = SensorState.fromDict(self.input) self.assertIs(None, result.lastupdated)
def test_basic(self): result = SensorState.fromDict(self.input) self.assertEquals(0, result.buttonevent)