def test_met_john_message_more_than_once(self): """if test fails could be due to meet_with_john_num_plusone function being changed""" c = Car(1) c.meet_with_john_num_plusone() c.meet_with_john_num_plusone() self.assertEqual(c.met_john_message(), "Driver 1 met with John Jamieson 2 times.")
def test_met_john_message(self): c = Car(1) self.assertEqual(c.met_john_message(), "Driver 1 met with John Jamieson 0 time.")