Ejemplo n.º 1
0
 def test_not_Ni(self):
     '''Test !Ni code'''
     system = System(uwp='D666066-6')
     for pop in '789A':
         system.population = ehex(pop)
         system._determine_trade_codes()
         self.assertFalse('Ni' in system.trade_codes)
Ejemplo n.º 2
0
 def test_not_In(self):
     '''Test !In code'''
     system = System(uwp='D606066-6')
     for atm in '3568ABC':
         for pop in '012345678':
             system.atmosphere = ehex(atm)
             system.population = ehex(pop)
             system._determine_trade_codes()
             self.assertFalse('In' in system.trade_codes)
Ejemplo n.º 3
0
 def test_In(self):
     '''Test In code'''
     system = System(uwp='D606066-6')
     for atm in '012479':
         for pop in '9A':
             system.atmosphere = ehex(atm)
             system.population = ehex(pop)
             system._determine_trade_codes()
             self.assertTrue('In' in system.trade_codes)
Ejemplo n.º 4
0
 def test_Na(self):
     '''Test Na'''
     system = System(uwp='D600066-6')
     for atm in '012':
         for hyd in '0123':
             for pop in '6789A':
                 system.atmosphere = ehex(atm)
                 system.hydrographics = ehex(hyd)
                 system.population = ehex(pop)
                 system._determine_trade_codes()
                 self.assertTrue('Na' in system.trade_codes)
Ejemplo n.º 5
0
 def test_not_Ag(self):
     '''Test !Ag code'''
     system = System(uwp='D600066-6')
     for atm in '0123ABC':
         for hyd in '01239A':
             for pop in '0123489A':
                 system.atmosphere = ehex(atm)
                 system.hydrographics = ehex(hyd)
                 system.population = ehex(pop)
                 system._determine_trade_codes()
                 self.assertFalse('Ag' in system.trade_codes)
Ejemplo n.º 6
0
 def test_Ag(self):
     '''Test Ag code'''
     system = System(uwp='D600066-6')
     for atm in '456789':
         for hyd in '45678':
             for pop in '567':
                 system.atmosphere = ehex(atm)
                 system.hydrographics = ehex(hyd)
                 system.population = ehex(pop)
                 system._determine_trade_codes()
                 self.assertTrue('Ag' in system.trade_codes)
Ejemplo n.º 7
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)
Ejemplo n.º 8
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)
Ejemplo n.º 9
0
 def test_Ni(self):
     '''Test Ni code'''
     system = System(uwp='D666066-6')
     for pop in '0123456':
         system.population = ehex(pop)
         self.assertTrue('Ni' in system.trade_codes)