Beispiel #1
0
 def test_wall(self):
     error_msg = 'WallAnt isn\'t parameterized quite right'
     self.assertIs(4, ants.WallAnt().armor, error_msg)
     self.assertIs(4, ants.WallAnt.food_cost, error_msg)
Beispiel #2
0
 def test_wall(self):
     error_msg = "WallAnt isn't parameterized quite right"
     self.assertEqual(4, ants.WallAnt().armor, error_msg)
     self.assertEqual(4, ants.WallAnt.food_cost, error_msg)