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)
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)
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)
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)
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)
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)
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_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)
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)
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)
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)
def test_not_px(self): '''Test trade code not Px''' uwp = Uwp('C700055-5') for atm in '01456789C': for hyd in '6789A': for pop in '012789ABCDEF': for law in '012345ABCDEF': uwp.atmosphere = atm uwp.hydrographics = hyd uwp.population = pop uwp.law_level = law tcs = TradeCodes(uwp) self.assertFalse('Px' in tcs.trade_codes)
def test_px(self): '''Test trade code Px''' uwp = Uwp('C700055-5') for atm in '23AB': for hyd in '12345': for pop in '3456': for law in '6789': # Also need to check MW uwp.atmosphere = atm uwp.hydrographics = hyd uwp.population = pop uwp.law_level = law tcs = TradeCodes(uwp) self.assertTrue('Px' in tcs.trade_codes)