def test_not_ga(self): '''Test !Ga''' for siz in '0123459ABC': for atm in '0123459ABC': for hyd in '0123489A': planet = Planet() planet.size = uwp.Size(siz) planet.atmosphere = uwp.Atmosphere(atm) planet.hydrographics = uwp.Hydrographics(hyd) self.assertFalse('Ga' in gen_trade_codes(planet))
def test_wa(self): '''Test Wa''' for siz in '3456789A': for atm in '3456789': hyd = 'A' planet = Planet() planet.size = uwp.Size(siz) planet.atmosphere = uwp.Atmosphere(atm) planet.hydrographics = uwp.Hydrographics(hyd) self.assertTrue('Wa' in gen_trade_codes(planet))