def test_colony_set_asteroids2(self): planetx = Planet('asteroids') planetx.colony = self.colony
def test_colony_asteroids1(self): planetx = Planet('asteroids', colony=self.outpost) eq_(planetx.colony, None)
def test_colony_asteroids2(self): planetx = Planet('asteroids', colony=self.colony) eq_(planetx.colony, None)
def test_bad_init_planet2(self): Planet('planet', size='small')
def test_planet_wrong_type(self): Planet('foo')
def test_set_colony_giant(self): planetx = Planet('giant') planetx.colony = self.colony
def test_planet_strings_asteroids(self): planetx = Planet('asteroids') eq_(str(planetx), 'This is asteroids field')
def test_create_planet_missing_property1(self): planetx = Planet('asteroids') planetx.create_planet(size='medium', organic='average', mineral='rich')
def test_create_planet_missing_property2(self): planetx = Planet('asteroids') planetx.create_planet(size='medium', mineral='rich', environment='barren')
def test_bad_init_planet6(self): Planet('planet', size='tiny', organic='poor', environment='toxic')
def test_bad_init_planet7(self): Planet('planet', environment='toxic', mineral='rich', size='huge')
def test_bad_init_planet5(self): Planet('planet', environment='toxic')
def test_bad_init_planet4(self): Planet('planet', organic='poor', mineral='poor')
def test_bad_init_planet3(self): Planet( 'planet', size='small', organic='poor', )
def test_giant_outpost(self): planetx = Planet('giant', colony=self.outpost) eq_(planetx.colony.kind, 'outpost')
def test_create_planet_missing_property3(self): planetx = Planet('asteroids') planetx.create_planet(size='medium', organic='average', environment='barren')
def test_giant_colony(self): Planet('giant', colony=self.colony)
def test_create_planet_missing_property4(self): planetx = Planet('asteroids') planetx.create_planet(organic='average', mineral='rich', environment='barren')
def test_del_outpost_giant(self): planetx = Planet('giant', colony=self.outpost) del planetx.colony eq_(planetx.colony, None)
def test_create_planet_missing_property5(self): planetx = Planet('asteroids') planetx.create_planet()
def test_planet_strings_giant(self): planetx = Planet('giant') eq_(str(planetx), 'This is gas giant planet')
def test_bad_init_planet1(self): Planet('planet')