def testUpdateEmotionsKnownValues(self):
     marvin = Marvin()
     assert marvin.emotions is None
     changed_state = Marvin.quiet_state
     marvin.updateEmotions(changed_state)
     assert marvin.emotions is Marvin.start_emotions
 def testSensorDeltasKnownValues(self):
     changed_state = copy.copy(Marvin.quiet_state)
     changed_state.batteryCapacity += .5
     deltas = dict(Marvin.deltas(Marvin.quiet_state, changed_state))
     # TODO: Test known values here
     assert deltas['batteryCapacity'] == .5