Example #1
0
 def test_not_Ri(self):
     '''Test "Ri'''
     system = System(uwp='D707007-7')
     for gov in '0123ABCDE':
         for atm in '01234579ABC':
             for pop in '0123459A':
                 system.government = ehex(gov)
                 system.atmosphere = ehex(atm)
                 system.population = ehex(pop)
                 system._determine_trade_codes()
                 self.assertFalse('Ri' in system.trade_codes)
Example #2
0
 def test_Ri(self):
     '''Test Ri'''
     system = System(uwp='D707007-7')
     for gov in '456789':
         for atm in '68':
             for pop in '678':
                 system.government = ehex(gov)
                 system.atmosphere = ehex(atm)
                 system.population = ehex(pop)
                 system._determine_trade_codes()
                 self.assertTrue('Ri' in system.trade_codes)