Beispiel #1
0
 def test_not_De(self):
     '''Test !De'''
     system = System(uwp='D770777-7')
     for hyd in '123456789':
         system.hydrographics = ehex(hyd)
         system._determine_trade_codes()
         self.assertFalse('De' in system.trade_codes)
Beispiel #2
0
 def test_Ic(self):
     '''Test Ic'''
     system = System(uwp='D700777-7')
     for atm in '01':
         for hyd in '123456789A':
             system.atmosphere = ehex(atm)
             system.hydrographics = ehex(hyd)
             system._determine_trade_codes()
             self.assertTrue('Ic' in system.trade_codes)
Beispiel #3
0
 def test_not_Po(self):
     '''Test !Po'''
     system = System(uwp='D700777-7')
     for atm in '016789ABC':
         for hyd in '456789A':
             system.atmosphere = ehex(atm)
             system.hydrographics = ehex(hyd)
             system._determine_trade_codes()
             self.assertFalse('Po' in system.trade_codes)
Beispiel #4
0
 def test_Po(self):
     '''Test Po'''
     system = System(uwp='D700777-7')
     for atm in '2345':
         for hyd in '0123':
             system.atmosphere = ehex(atm)
             system.hydrographics = ehex(hyd)
             system._determine_trade_codes()
             self.assertTrue('Po' in system.trade_codes)
Beispiel #5
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)
Beispiel #6
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)
Beispiel #7
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)