Пример #1
0
 def test_is_enemy(self):
     char0 = Character(self.good)
     char1 = Character(self.good)
     char2 = Character(self.bad)
     char3 = Character(self.bad)
     
     self.assertFalse(char0.is_enemy(char1))
     self.assertTrue(char0.is_enemy(char2))
     self.assertTrue(char2.is_enemy(char0))
     self.assertFalse(char2.is_enemy(char3))
     
     
Пример #2
0
 def test_get_type(self):
     char = Character(self.good)
     self.assertEquals(char.get_type(), 'Character')