Mercurial > boomslang
comparison gamelib/tests/test_scene_interactions_cryo.py @ 254:ca0c2875ad8f
More test fixes.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Fri, 27 Aug 2010 17:35:15 +0200 |
parents | dfc89bc64fdb |
children | bfb6c682b4fb |
comparison
equal
deleted
inserted
replaced
253:60a0757bee05 | 254:ca0c2875ad8f |
---|---|
56 self.assert_current_scene('map') | 56 self.assert_current_scene('map') |
57 | 57 |
58 def test_cryo_door_open_titanium_leg(self): | 58 def test_cryo_door_open_titanium_leg(self): |
59 "The door is open and we touch it with the titanium leg. No change." | 59 "The door is open and we touch it with the titanium leg. No change." |
60 | 60 |
61 self.state.add_inventory_item('titanium_leg') | |
61 self.set_game_data('door', 'open', 'cryo.door') | 62 self.set_game_data('door', 'open', 'cryo.door') |
62 | 63 |
63 self.interact_thing('cryo.door', 'titanium_leg') | 64 self.interact_thing('cryo.door', 'titanium_leg') |
64 | 65 |
65 self.assert_game_data('door', 'open', 'cryo.door') | 66 self.assert_game_data('door', 'open', 'cryo.door') |
111 self.assert_game_data('fixed', False, 'cryo.pipe.right') | 112 self.assert_game_data('fixed', False, 'cryo.pipe.right') |
112 | 113 |
113 def test_pipes_unchopped_machete(self): | 114 def test_pipes_unchopped_machete(self): |
114 "Touch the unchopped cryopipes with the machete. They chop." | 115 "Touch the unchopped cryopipes with the machete. They chop." |
115 | 116 |
117 self.state.add_inventory_item('machete') | |
116 self.assert_game_data('fixed', True, 'cryo.pipe.left') | 118 self.assert_game_data('fixed', True, 'cryo.pipe.left') |
117 self.assert_game_data('fixed', True, 'cryo.pipe.right') | 119 self.assert_game_data('fixed', True, 'cryo.pipe.right') |
118 self.assert_item_exists('cryo_pipe.0', False) | 120 self.assert_item_exists('cryo_pipe.0', False) |
119 self.assert_item_exists('cryo_pipe.1', False) | 121 self.assert_item_exists('cryo_pipe.1', False) |
120 | 122 |
129 self.assert_inventory_item('cryo_pipe.1', True) | 131 self.assert_inventory_item('cryo_pipe.1', True) |
130 | 132 |
131 def test_pipes_chopped_machete(self): | 133 def test_pipes_chopped_machete(self): |
132 "Touch the chopped cryopipes with the machete. No change." | 134 "Touch the chopped cryopipes with the machete. No change." |
133 | 135 |
136 self.state.add_inventory_item('machete') | |
134 self.set_game_data('fixed', False, 'cryo.pipe.left') | 137 self.set_game_data('fixed', False, 'cryo.pipe.left') |
135 self.set_game_data('fixed', False, 'cryo.pipe.right') | 138 self.set_game_data('fixed', False, 'cryo.pipe.right') |
136 | 139 |
137 self.assertEquals(None, self.interact_thing('cryo.pipe.left', 'machete')) | 140 self.assertEquals(None, self.interact_thing('cryo.pipe.left', 'machete')) |
138 self.assertEquals(None, self.interact_thing('cryo.pipe.right', 'machete')) | 141 self.assertEquals(None, self.interact_thing('cryo.pipe.right', 'machete')) |