コード例 #1
0
	def test_should_heal_a_character(self):
		game.handleEvents(self._eventList)
		self.assertEqual(self._c2.getHealth(), 100)
コード例 #2
0
 def test_should_heal_a_character(self):
     game.handleEvents(self._eventList)
     self.assertEqual(self._c2.getHealth(), 100)
コード例 #3
0
	def test_should_handle_the_damage_events(self):
		game.handleEvents(self._eventList)	
		self.assertFalse(self._c1.isAlive())
		self.assertTrue(self._c2.isAlive())
コード例 #4
0
 def test_should_handle_the_damage_events(self):
     game.handleEvents(self._eventList)
     self.assertFalse(self._c1.isAlive())
     self.assertTrue(self._c2.isAlive())