Exemplo n.º 1
0
 def __init__(self):
     self.events = [
         Events.NailOnTheRoad(),
         Events.RockUnderWheels(),
         Events.DeadEnd(),
         Events.Nothing()
     ]
Exemplo n.º 2
0
 def test_event_dead(self):
     str = Events.DeadEnd().description()
     self.assertEqual(str,
                      "Car ended in dead end and you must to turn back")
Exemplo n.º 3
0
 def test_act_dead(self):
     self.car.act_on_event(Events.DeadEnd())
     self.assertEqual(8, self.car.hp)