コード例 #1
0
 def test_set_location(self):
     test_creature = Creature([0, 0], 0)
     test_creature.set_location([1, 1])
     self.assertEqual(test_creature.get_location(), [1, 1],
                      "Testing creature.set_location([1,1]).")
コード例 #2
0
 def test_set_location(self):
     test_creature = Creature([0, 0], 0)
     test_creature.set_location([1, 1])
     self.assertEqual(test_creature.get_location(), [1, 1], "Testing creature.set_location([1,1]).")