def testAddWorld(self): c = Character() self.assertRaises(Exception, c.set_world, world.World()) w = world.World(name='TestLand', empire=world.COMORAN, location=world.INT, atmosphere=world.HLS, topography=world.BROAD, index=world.LOW, government=world.NOBLE, military=world.LORDSPILOT, attitude=world.PARANOID, export=world.INDUSTRIAL, quarantine=world.NONE, regulation=world.LOOSE, hydrology=world.LAND) c.set_world(w) self.assertEquals(c.get_world().get_name(), 'TestLand')