comparison gamelib/tests/test_scene_interactions_cryo.py @ 536:49b6a3d31ee7

PEP-8 tests.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 11 Feb 2012 12:05:13 +0200
parents fdf3a6dd476b
children 65e9b5c40233
comparison
equal deleted inserted replaced
535:2d87cb7eee50 536:49b6a3d31ee7
95 self.assert_game_data('fixed', True, 'cryo.pipe.right.top') 95 self.assert_game_data('fixed', True, 'cryo.pipe.right.top')
96 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom') 96 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom')
97 97
98 self.assertNotEquals(None, self.interact_thing('cryo.pipe.left')) 98 self.assertNotEquals(None, self.interact_thing('cryo.pipe.left'))
99 self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.top')) 99 self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.top'))
100 self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.bottom')) 100 self.assertNotEquals(None,
101 self.interact_thing('cryo.pipe.right.bottom'))
101 102
102 self.assert_game_data('fixed', True, 'cryo.pipe.left') 103 self.assert_game_data('fixed', True, 'cryo.pipe.left')
103 self.assert_game_data('fixed', True, 'cryo.pipe.right.top') 104 self.assert_game_data('fixed', True, 'cryo.pipe.right.top')
104 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom') 105 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom')
105 106
127 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom') 128 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom')
128 self.assert_item_exists('cryo_pipe.0', False) 129 self.assert_item_exists('cryo_pipe.0', False)
129 self.assert_item_exists('cryo_pipe.1', False) 130 self.assert_item_exists('cryo_pipe.1', False)
130 self.assert_item_exists('cryo_pipe.2', False) 131 self.assert_item_exists('cryo_pipe.2', False)
131 132
132 self.assertNotEquals(None, self.interact_thing('cryo.pipe.left', 'machete')) 133 self.assertNotEquals(
133 self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.top', 'machete')) 134 None, self.interact_thing('cryo.pipe.left', 'machete'))
134 self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.bottom', 'machete')) 135 self.assertNotEquals(
136 None, self.interact_thing('cryo.pipe.right.top', 'machete'))
137 self.assertNotEquals(
138 None, self.interact_thing('cryo.pipe.right.bottom', 'machete'))
135 139
136 self.assert_game_data('fixed', False, 'cryo.pipe.left') 140 self.assert_game_data('fixed', False, 'cryo.pipe.left')
137 self.assert_game_data('fixed', False, 'cryo.pipe.right.top') 141 self.assert_game_data('fixed', False, 'cryo.pipe.right.top')
138 self.assert_game_data('fixed', False, 'cryo.pipe.right.bottom') 142 self.assert_game_data('fixed', False, 'cryo.pipe.right.bottom')
139 self.assert_item_exists('tube_fragment.0') 143 self.assert_item_exists('tube_fragment.0')
149 self.state.add_inventory_item('machete') 153 self.state.add_inventory_item('machete')
150 self.set_game_data('fixed', False, 'cryo.pipe.left') 154 self.set_game_data('fixed', False, 'cryo.pipe.left')
151 self.set_game_data('fixed', False, 'cryo.pipe.right.top') 155 self.set_game_data('fixed', False, 'cryo.pipe.right.top')
152 self.set_game_data('fixed', False, 'cryo.pipe.right.bottom') 156 self.set_game_data('fixed', False, 'cryo.pipe.right.bottom')
153 157
154 self.assertEquals(None, self.interact_thing('cryo.pipe.left', 'machete')) 158 self.assertEquals(
155 self.assertEquals(None, self.interact_thing('cryo.pipe.right.top', 'machete')) 159 None, self.interact_thing('cryo.pipe.left', 'machete'))
156 self.assertEquals(None, self.interact_thing('cryo.pipe.right.bottom', 'machete')) 160 self.assertEquals(
161 None, self.interact_thing('cryo.pipe.right.top', 'machete'))
162 self.assertEquals(
163 None, self.interact_thing('cryo.pipe.right.bottom', 'machete'))
157 164
158 self.assert_game_data('fixed', False, 'cryo.pipe.left') 165 self.assert_game_data('fixed', False, 'cryo.pipe.left')
159 self.assert_game_data('fixed', False, 'cryo.pipe.right.top') 166 self.assert_game_data('fixed', False, 'cryo.pipe.right.top')
160 self.assert_game_data('fixed', False, 'cryo.pipe.right.bottom') 167 self.assert_game_data('fixed', False, 'cryo.pipe.right.bottom')