예제 #1
0
 def test_hi(self):
     '''Test trade code Hi'''
     uwp = Uwp('D755099-9')
     for pop in '9ABCDEF':
         uwp.population = pop
         tcs = TradeCodes(uwp)
         self.assertTrue('Hi' in tcs.trade_codes)
예제 #2
0
 def test_lo(self):
     '''Test trade code Lo'''
     uwp = Uwp('D644000-0')
     for pop in '123':
         uwp.population = pop
         tcs = TradeCodes(uwp)
         self.assertTrue('Lo' in tcs.trade_codes)
예제 #3
0
 def test_ni(self):
     '''Test trade code Ni'''
     uwp = Uwp('D644000-0')
     for pop in '456':
         uwp.population = pop
         tcs = TradeCodes(uwp)
         self.assertTrue('Ni' in tcs.trade_codes)
예제 #4
0
 def test_de(self):
     '''Test trade code De'''
     uwp = Uwp('A400000-0')
     for atm in '23456789':
         uwp.atmosphere = atm
         tcs = TradeCodes(uwp)
         self.assertTrue('De' in tcs.trade_codes)
예제 #5
0
 def test_not_ph(self):
     '''Test trade code not Ph'''
     uwp = Uwp('C755055-5')
     for pop in '012345679ABCDEF':
         uwp.population = pop
         tcs = TradeCodes(uwp)
         self.assertFalse('Ph' in tcs.trade_codes)
예제 #6
0
 def test_not_ic(self):
     '''Test trade code not Ic'''
     uwp = Uwp('A600000-0')
     for atm in '23456789ABC':
         uwp.atmosphere = atm
         tcs = TradeCodes(uwp)
         self.assertFalse('Ic' in tcs.trade_codes)
예제 #7
0
 def test_not_fl(self):
     '''Test trade code not Fl'''
     uwp = Uwp('A700000-0')
     for atm in '01234567899':
         uwp.atmosphere = atm
         tcs = TradeCodes(uwp)
         self.assertFalse('Fl' in tcs.trade_codes)
예제 #8
0
 def test_not_lo(self):
     '''Test trade code not Lo'''
     uwp = Uwp('C755055-5')
     for pop in '0456789ABCDEF':
         uwp.population = pop
         tcs = TradeCodes(uwp)
         self.assertFalse('Lo' in tcs.trade_codes)
예제 #9
0
 def test_not_hi(self):
     '''Test trade code not Hi'''
     uwp = Uwp('C755055-5')
     for pop in '012345678':
         uwp.population = pop
         tcs = TradeCodes(uwp)
         self.assertFalse('Hi' in tcs.trade_codes)
예제 #10
0
 def test_not_va(self):
     '''Test trade code not Va'''
     uwp = Uwp('A600000-0')
     for atm in '123456789ABC':
         for hyd in '123456789A':
             uwp.atmosphere = atm
             uwp.hydrographics = hyd
             tcs = TradeCodes(uwp)
             self.assertFalse('Va' in tcs.trade_codes)
예제 #11
0
 def test_not_de(self):
     '''Test trade code not De'''
     uwp = Uwp('A700000-0')
     for atm in '0123456789':
         for hyd in '123456789A':
             uwp.atmosphere = atm
             uwp.hydrographics = hyd
             tcs = TradeCodes(uwp)
             self.assertFalse('De' in tcs.trade_codes)
예제 #12
0
 def test_wa(self):
     '''Test trade code Wa'''
     uwp = Uwp('A40A000-0')
     for siz in '3456789A':
         for atm in '3456789':
             uwp.size = siz
             uwp.atmosphere = atm
             tcs = TradeCodes(uwp)
             self.assertTrue('Wa' in tcs.trade_codes)
예제 #13
0
 def test_ic(self):
     '''Test trade code Ic'''
     uwp = Uwp('A400000-0')
     for atm in '01':
         for hyd in '123456789A':
             uwp.atmosphere = atm
             uwp.hydrographics = hyd
             tcs = TradeCodes(uwp)
             self.assertTrue('Ic' in tcs.trade_codes)
예제 #14
0
 def test_not_po(self):
     '''Test trade code not Po'''
     uwp = Uwp('C700055-5')
     for atm in '016789ABC':
         for hyd in '456789A':
             uwp.atmosphere = atm
             uwp.hydrographics = hyd
             tcs = TradeCodes(uwp)
             self.assertFalse('Po' in tcs.trade_codes)
예제 #15
0
 def test_fl(self):
     '''Test trade code Fl'''
     uwp = Uwp('A400000-0')
     for atm in 'ABC':
         for hyd in '123456778A':
             uwp.atmosphere = atm
             uwp.hydrographics = hyd
             tcs = TradeCodes(uwp)
             self.assertTrue('Fl' in tcs.trade_codes)
예제 #16
0
 def test_in(self):
     '''Test trade code In'''
     uwp = Uwp('C700055-5')
     for atm in '012479':
         for pop in '9ABCDEF':
             uwp.atmosphere = atm
             uwp.population = pop
             tcs = TradeCodes(uwp)
             self.assertTrue('In' in tcs.trade_codes)
예제 #17
0
 def test_not_in(self):
     '''Test trade code not In'''
     uwp = Uwp('C700055-5')
     for atm in '3568ABC':
         for pop in '012345678':
             uwp.atmosphere = atm
             uwp.population = pop
             tcs = TradeCodes(uwp)
             self.assertFalse('In' in tcs.trade_codes)
예제 #18
0
 def test_po(self):
     '''Test trade code Po'''
     uwp = Uwp('C700055-5')
     for atm in '2345':
         for hyd in '0123':
             uwp.atmosphere = atm
             uwp.hydrographics = hyd
             tcs = TradeCodes(uwp)
             self.assertTrue('Po' in tcs.trade_codes)
예제 #19
0
 def test_pi(self):
     '''Test trade code Pi'''
     uwp = Uwp('C700055-5')
     for atm in '012479':
         for pop in '78':
             uwp.atmosphere = atm
             uwp.population = pop
             tcs = TradeCodes(uwp)
             self.assertTrue('Pi' in tcs.trade_codes)
예제 #20
0
 def test_oc(self):
     '''Test trade code Oc'''
     uwp = Uwp('A00A000-0')
     for siz in 'ABCDEF':
         for atm in '3456789ABC':
             uwp.size = siz
             uwp.atmosphere = atm
             tcs = TradeCodes(uwp)
             self.assertTrue('Oc' in tcs.trade_codes)
예제 #21
0
 def test_not_he(self):
     '''Test trade code not He'''
     uwp = Uwp('A000000-0')
     for siz in '01':
         for atm in '013568':
             for hyd in '3456789A':
                 uwp.size = siz
                 uwp.atmosphere = atm
                 uwp.hydrographics = hyd
                 tcs = TradeCodes(uwp)
                 self.assertFalse('He' in tcs.trade_codes)
예제 #22
0
 def test_not_ri(self):
     '''Test trade code not Ri'''
     uwp = Uwp('C700055-5')
     for atm in '01234579ABC':
         for pop in '0123459ABCDEF':
             for gov in '012ABCDEF':
                 uwp.atmosphere = atm
                 uwp.population = pop
                 uwp.government = gov
                 tcs = TradeCodes(uwp)
                 self.assertFalse('Ri' in tcs.trade_codes)
예제 #23
0
 def test_not_na(self):
     '''Test trade code not Na'''
     uwp = Uwp('C700055-5')
     for atm in '456789ABC':
         for hyd in '456789A':
             for pop in '012345':
                 uwp.atmosphere = atm
                 uwp.hydrographics = hyd
                 uwp.population = pop
                 tcs = TradeCodes(uwp)
                 self.assertFalse('Na' in tcs.trade_codes)
예제 #24
0
 def test_not_wa(self):
     '''Test trade code not Wa'''
     uwp = Uwp('A000000-0')
     for siz in '012BC':
         for atm in '012ABC':
             for hyd in '0123456789':
                 uwp.size = siz
                 uwp.atmosphere = atm
                 uwp.hydrographics = hyd
                 tcs = TradeCodes(uwp)
                 self.assertFalse('Wa' in tcs.trade_codes)
예제 #25
0
 def test_ri(self):
     '''Test trade code Ri'''
     uwp = Uwp('C700055-5')
     for atm in '68':
         for pop in '678':
             for gov in '456789':
                 uwp.atmosphere = atm
                 uwp.population = pop
                 uwp.government = gov
                 tcs = TradeCodes(uwp)
                 self.assertTrue('Ri' in tcs.trade_codes)
예제 #26
0
 def test_ag(self):
     '''Test trade code Ag'''
     uwp = Uwp('C700055-5')
     for atm in '456789':
         for hyd in '45678':
             for pop in '567':
                 uwp.atmosphere = atm
                 uwp.hydrographics = hyd
                 uwp.population = pop
                 tcs = TradeCodes(uwp)
                 self.assertTrue('Ag' in tcs.trade_codes)
예제 #27
0
 def test_ga(self):
     '''Test trade code Ga'''
     uwp = Uwp('A000000-0')
     for siz in '678':
         for atm in '568':
             for hyd in '567':
                 uwp.size = siz
                 uwp.atmosphere = atm
                 uwp.hydrographics = hyd
                 tcs = TradeCodes(uwp)
                 self.assertTrue('Ga' in tcs.trade_codes)
예제 #28
0
 def test_not_pa(self):
     '''Test trade code not Pa'''
     uwp = Uwp('C755000-0')
     for atm in '0123ABC':
         for hyd in '01239A':
             for pop in '01235679ABCDEF':
                 uwp.atmosphere = atm
                 uwp.hydrographics = hyd
                 uwp.population = pop
                 tcs = TradeCodes(uwp)
                 self.assertFalse('Pa' in tcs.trade_codes)
예제 #29
0
 def test_he(self):
     '''Test trade code He'''
     uwp = Uwp('A000000-0')
     for siz in '3456789ABC':
         for atm in '2479ABC':
             for hyd in '012':
                 uwp.size = siz
                 uwp.atmosphere = atm
                 uwp.hydrographics = hyd
                 tcs = TradeCodes(uwp)
                 self.assertTrue('He' in tcs.trade_codes)
예제 #30
0
 def test_not_di(self):
     '''Test trade code not Di'''
     uwp = Uwp('X766000-0')
     for pop in '123456789ABCDEF':
         for gov in '123456789ABCDEF':
             for law in '123456789ABCDEFGHJ':
                 uwp.population = pop
                 uwp.government = gov
                 uwp.law_level = law
                 tcs = TradeCodes(uwp)
                 self.assertFalse('Di' in tcs.trade_codes)