Example #1
0
 def test_colony_set_asteroids2(self):
     planetx = Planet('asteroids')
     planetx.colony = self.colony
Example #2
0
 def test_colony_asteroids1(self):
     planetx = Planet('asteroids', colony=self.outpost)
     eq_(planetx.colony, None)
Example #3
0
 def test_colony_asteroids2(self):
     planetx = Planet('asteroids', colony=self.colony)
     eq_(planetx.colony, None)
Example #4
0
 def test_bad_init_planet2(self):
     Planet('planet', size='small')
Example #5
0
 def test_planet_wrong_type(self):
     Planet('foo')
Example #6
0
 def test_set_colony_giant(self):
     planetx = Planet('giant')
     planetx.colony = self.colony
Example #7
0
 def test_planet_strings_asteroids(self):
     planetx = Planet('asteroids')
     eq_(str(planetx), 'This is asteroids field')
Example #8
0
 def test_create_planet_missing_property1(self):
     planetx = Planet('asteroids')
     planetx.create_planet(size='medium', organic='average', mineral='rich')
Example #9
0
 def test_create_planet_missing_property2(self):
     planetx = Planet('asteroids')
     planetx.create_planet(size='medium',
                           mineral='rich',
                           environment='barren')
Example #10
0
 def test_bad_init_planet6(self):
     Planet('planet', size='tiny', organic='poor', environment='toxic')
Example #11
0
 def test_bad_init_planet7(self):
     Planet('planet', environment='toxic', mineral='rich', size='huge')
Example #12
0
 def test_bad_init_planet5(self):
     Planet('planet', environment='toxic')
Example #13
0
 def test_bad_init_planet4(self):
     Planet('planet', organic='poor', mineral='poor')
Example #14
0
 def test_bad_init_planet3(self):
     Planet(
         'planet',
         size='small',
         organic='poor',
     )
Example #15
0
 def test_giant_outpost(self):
     planetx = Planet('giant', colony=self.outpost)
     eq_(planetx.colony.kind, 'outpost')
Example #16
0
 def test_create_planet_missing_property3(self):
     planetx = Planet('asteroids')
     planetx.create_planet(size='medium',
                           organic='average',
                           environment='barren')
Example #17
0
 def test_giant_colony(self):
     Planet('giant', colony=self.colony)
Example #18
0
 def test_create_planet_missing_property4(self):
     planetx = Planet('asteroids')
     planetx.create_planet(organic='average',
                           mineral='rich',
                           environment='barren')
Example #19
0
 def test_del_outpost_giant(self):
     planetx = Planet('giant', colony=self.outpost)
     del planetx.colony
     eq_(planetx.colony, None)
Example #20
0
 def test_create_planet_missing_property5(self):
     planetx = Planet('asteroids')
     planetx.create_planet()
Example #21
0
 def test_planet_strings_giant(self):
     planetx = Planet('giant')
     eq_(str(planetx), 'This is gas giant planet')
Example #22
0
 def test_bad_init_planet1(self):
     Planet('planet')