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)
 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)
 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)
 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)
 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)
 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)