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)
def test_not_Ic(self): '''Test !Ic''' system = System(uwp='D700777-7') for atm in '23456789ABC': system.atmosphere = ehex(atm) system._determine_trade_codes() self.assertFalse('Ic' in system.trade_codes)
def test_not_As(self): '''Test !As''' system = System(uwp='D077777-7') for siz in '123456789A': system.size = ehex(siz) system._determine_trade_codes() self.assertFalse('As' in system.trade_codes)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)