Пример #1
0
 def testCodeCheck2(self):
     code = TradeCodes("Po Lo")
     self.assertTrue(code.check_world_codes(self.star2))
     self.assertTrue(code.poor)
     self.assertTrue(code.low)
Пример #2
0
 def testCodeCheckFails(self):
     code = TradeCodes("Wa")
     self.assertFalse(code.check_world_codes(self.star1))
     self.assertFalse(code.check_world_codes(self.star2))
Пример #3
0
 def testCodeCheck(self):
     code = TradeCodes("Fl")
     self.assertTrue(code.check_world_codes(self.star1))