def test_eating_state_well(self): turn_state = TurnState() turn_state.eating_state = 3 self.assertEqual(turn_state.eating_state, 3) self.assertFalse(turn_state.eating_poorly()) self.assertFalse(turn_state.eating_moderately()) self.assertTrue(turn_state.eating_well())
def test_eating_state_invalid(self): turn_state = TurnState() turn_state.eating_state = 4 self.assertEqual(turn_state.eating_state, 0) self.assertFalse(turn_state.eating_poorly()) self.assertFalse(turn_state.eating_moderately()) self.assertFalse(turn_state.eating_well())