# HG changeset patch # User Jeremy Thurgood # Date 1328954713 -7200 # Node ID 49b6a3d31ee74a2da67bc3fc5d55231bc5adc44c # Parent 2d87cb7eee50222319d12ce02305fd08d1abe331 PEP-8 tests. diff -r 2d87cb7eee50 -r 49b6a3d31ee7 gamelib/tests/game_logic_utils.py --- a/gamelib/tests/game_logic_utils.py Sat Feb 11 12:04:09 2012 +0200 +++ b/gamelib/tests/game_logic_utils.py Sat Feb 11 12:05:13 2012 +0200 @@ -8,6 +8,7 @@ # really want in the tests. import albow.resource + def get_image_unoptimized(*names, **kw): kw.setdefault('optimize', False) return albow.resource._get_image(names, **kw) @@ -88,4 +89,3 @@ def close_detail(self): self.state.set_current_detail(None) - diff -r 2d87cb7eee50 -r 49b6a3d31ee7 gamelib/tests/test_scene_interactions_cryo.py --- a/gamelib/tests/test_scene_interactions_cryo.py Sat Feb 11 12:04:09 2012 +0200 +++ b/gamelib/tests/test_scene_interactions_cryo.py Sat Feb 11 12:05:13 2012 +0200 @@ -97,7 +97,8 @@ self.assertNotEquals(None, self.interact_thing('cryo.pipe.left')) self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.top')) - self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.bottom')) + self.assertNotEquals(None, + self.interact_thing('cryo.pipe.right.bottom')) self.assert_game_data('fixed', True, 'cryo.pipe.left') self.assert_game_data('fixed', True, 'cryo.pipe.right.top') @@ -129,9 +130,12 @@ self.assert_item_exists('cryo_pipe.1', False) self.assert_item_exists('cryo_pipe.2', False) - self.assertNotEquals(None, self.interact_thing('cryo.pipe.left', 'machete')) - self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.top', 'machete')) - self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.bottom', 'machete')) + self.assertNotEquals( + None, self.interact_thing('cryo.pipe.left', 'machete')) + self.assertNotEquals( + None, self.interact_thing('cryo.pipe.right.top', 'machete')) + self.assertNotEquals( + None, self.interact_thing('cryo.pipe.right.bottom', 'machete')) self.assert_game_data('fixed', False, 'cryo.pipe.left') self.assert_game_data('fixed', False, 'cryo.pipe.right.top') @@ -151,9 +155,12 @@ self.set_game_data('fixed', False, 'cryo.pipe.right.top') self.set_game_data('fixed', False, 'cryo.pipe.right.bottom') - self.assertEquals(None, self.interact_thing('cryo.pipe.left', 'machete')) - self.assertEquals(None, self.interact_thing('cryo.pipe.right.top', 'machete')) - self.assertEquals(None, self.interact_thing('cryo.pipe.right.bottom', 'machete')) + self.assertEquals( + None, self.interact_thing('cryo.pipe.left', 'machete')) + self.assertEquals( + None, self.interact_thing('cryo.pipe.right.top', 'machete')) + self.assertEquals( + None, self.interact_thing('cryo.pipe.right.bottom', 'machete')) self.assert_game_data('fixed', False, 'cryo.pipe.left') self.assert_game_data('fixed', False, 'cryo.pipe.right.top') diff -r 2d87cb7eee50 -r 49b6a3d31ee7 gamelib/tests/test_walkthrough.py --- a/gamelib/tests/test_walkthrough.py Sat Feb 11 12:04:09 2012 +0200 +++ b/gamelib/tests/test_walkthrough.py Sat Feb 11 12:05:13 2012 +0200 @@ -179,7 +179,8 @@ self.assert_game_data('contents', set(['tube']), 'machine.welder.slot') self.interact_thing('machine.welder.slot', 'empty_can.1') self.assert_inventory_item('empty_can.1', False) - self.assert_game_data('contents', set(['tube', 'can']), 'machine.welder.slot') + self.assert_game_data( + 'contents', set(['tube', 'can']), 'machine.welder.slot') self.interact_thing('machine.welder.button') self.assert_game_data('contents', set(), 'machine.welder.slot') self.assert_inventory_item('cryo_pipes_one') @@ -190,7 +191,8 @@ self.assert_game_data('contents', set(['tube']), 'machine.welder.slot') self.interact_thing('machine.welder.slot', 'empty_can.2') self.assert_inventory_item('empty_can.2', False) - self.assert_game_data('contents', set(['tube', 'can']), 'machine.welder.slot') + self.assert_game_data( + 'contents', set(['tube', 'can']), 'machine.welder.slot') self.interact_thing('machine.welder.button') self.assert_game_data('contents', set(), 'machine.welder.slot') self.assert_inventory_item('cryo_pipes_one', False) @@ -202,7 +204,8 @@ self.assert_game_data('contents', set(['tube']), 'machine.welder.slot') self.interact_thing('machine.welder.slot', 'empty_can.0') self.assert_inventory_item('empty_can.0', False) - self.assert_game_data('contents', set(['tube', 'can']), 'machine.welder.slot') + self.assert_game_data( + 'contents', set(['tube', 'can']), 'machine.welder.slot') self.interact_thing('machine.welder.button') self.assert_game_data('contents', set(), 'machine.welder.slot') self.assert_inventory_item('cryo_pipes_two', False) @@ -248,7 +251,8 @@ # Fill the cryofluid receptacles. self.assert_game_data('filled', False, 'engine.cryo_containers') - self.interact_thing('engine.cryo_container_receptacle', 'full_detergent_bottle') + self.interact_thing( + 'engine.cryo_container_receptacle', 'full_detergent_bottle') self.assert_game_data('filled', True, 'engine.cryo_containers') self.assert_inventory_item('full_detergent_bottle', False) @@ -300,4 +304,3 @@ # Go somewhere interesting. self.interact_thing('bridge_comp.nav_line2') -