Mercurial > pyntnclick
annotate gamelib/tests/test_scene_interactions_cryo.py @ 788:abfa4f7e89a0 pyntnclick
Update scripts to handle moved po directory
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 26 Jan 2013 20:09:49 +0200 |
parents | eca4d2fc11a4 |
children | bdaffaa8b6bf |
rev | line source |
---|---|
730
eca4d2fc11a4
Move game_logic_utils to pyntnclick
Stefano Rivera <stefano@rivera.za.net>
parents:
729
diff
changeset
|
1 from pyntnclick.tests.game_logic_utils import GameLogicTestCase |
eca4d2fc11a4
Move game_logic_utils to pyntnclick
Stefano Rivera <stefano@rivera.za.net>
parents:
729
diff
changeset
|
2 |
729
7d777c9a1af1
Remove the last suspended-sentence-specific bits from GameLogicTestCase
Stefano Rivera <stefano@rivera.za.net>
parents:
728
diff
changeset
|
3 import gamelib.main |
60 | 4 |
5 | |
730
eca4d2fc11a4
Move game_logic_utils to pyntnclick
Stefano Rivera <stefano@rivera.za.net>
parents:
729
diff
changeset
|
6 class TestGameLogic(GameLogicTestCase): |
60 | 7 |
729
7d777c9a1af1
Remove the last suspended-sentence-specific bits from GameLogicTestCase
Stefano Rivera <stefano@rivera.za.net>
parents:
728
diff
changeset
|
8 GAME_DESCRIPTION_CLASS = gamelib.main.SuspendedSentence |
60 | 9 CURRENT_SCENE = 'cryo' |
10 | |
11 def test_cryo_door_closed_hand(self): | |
98
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
12 "The door is closed and we touch it with the hand. It becomes ajar." |
60 | 13 |
98
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
14 self.assert_game_data('door', 'shut', 'cryo.door') |
60 | 15 |
16 self.interact_thing('cryo.door') | |
17 | |
98
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
18 self.assert_game_data('door', 'ajar', 'cryo.door') |
60 | 19 |
20 def test_cryo_door_closed_titanium_leg(self): | |
21 "The door is closed and we touch it with the titanium leg. It opens." | |
22 | |
67
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
23 self.state.add_inventory_item('titanium_leg') |
98
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
24 self.assert_game_data('door', 'shut', 'cryo.door') |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
25 |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
26 self.interact_thing('cryo.door', 'titanium_leg') |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
27 |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
28 self.assert_game_data('door', 'shut', 'cryo.door') |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
29 self.assert_inventory_item('titanium_leg', True) |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
30 |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
31 def test_cryo_door_ajar_hand(self): |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
32 "The door is ajar and we touch it with the hand. No change." |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
33 |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
34 self.set_game_data('door', 'ajar', 'cryo.door') |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
35 |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
36 self.interact_thing('cryo.door') |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
37 |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
38 self.assert_game_data('door', 'ajar', 'cryo.door') |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
39 |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
40 def test_cryo_door_ajar_titanium_leg(self): |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
41 "The door is ajar and we touch it with the titanium leg. It opens." |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
42 |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
43 self.state.add_inventory_item('titanium_leg') |
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
44 self.set_game_data('door', 'ajar', 'cryo.door') |
60 | 45 |
46 self.interact_thing('cryo.door', 'titanium_leg') | |
47 | |
98
e97244b1be30
Fix tests for new tristate door logic.
Jeremy Thurgood <firxen@gmail.com>
parents:
67
diff
changeset
|
48 self.assert_game_data('door', 'open', 'cryo.door') |
190
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
49 self.assert_inventory_item('titanium_leg', True) |
60 | 50 |
51 def test_cryo_door_open_hand(self): | |
190
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
52 "The door is open and we touch it with the hand. We go to the map." |
60 | 53 |
190
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
54 self.set_game_data('door', 'open', 'cryo.door') |
60 | 55 |
56 self.interact_thing('cryo.door') | |
57 | |
252
dfc89bc64fdb
Start of walkthrough "unit test" and associated fixes and tweaks.
Jeremy Thurgood <firxen@gmail.com>
parents:
247
diff
changeset
|
58 self.assert_game_data('door', 'open', 'cryo.door', scene='cryo') |
dfc89bc64fdb
Start of walkthrough "unit test" and associated fixes and tweaks.
Jeremy Thurgood <firxen@gmail.com>
parents:
247
diff
changeset
|
59 self.assert_current_scene('map') |
60 | 60 |
61 def test_cryo_door_open_titanium_leg(self): | |
62 "The door is open and we touch it with the titanium leg. No change." | |
63 | |
254 | 64 self.state.add_inventory_item('titanium_leg') |
190
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
65 self.set_game_data('door', 'open', 'cryo.door') |
60 | 66 |
67 self.interact_thing('cryo.door', 'titanium_leg') | |
68 | |
190
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
69 self.assert_game_data('door', 'open', 'cryo.door') |
252
dfc89bc64fdb
Start of walkthrough "unit test" and associated fixes and tweaks.
Jeremy Thurgood <firxen@gmail.com>
parents:
247
diff
changeset
|
70 self.assert_current_scene('cryo') |
67
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
71 |
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
72 def test_cryo_unit_alpha_full_hand(self): |
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
73 "The cryo unit has the leg in it and we touch it. We get the leg." |
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
74 |
452
fdf3a6dd476b
Walkthrough test /almost/ finished.
Jeremy Thurgood <firxen@gmail.com>
parents:
355
diff
changeset
|
75 self.assert_game_data('contains_titanium_leg', True, 'cryo.unit.1') |
67
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
76 self.assert_inventory_item('titanium_leg', False) |
190
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
77 self.assert_detail_thing('cryo.titanium_leg', True) |
67
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
78 |
725
65e9b5c40233
Detail handling in test_scene_interactions_cryo
Stefano Rivera <stefano@rivera.za.net>
parents:
536
diff
changeset
|
79 self.interact_thing('cryo.titanium_leg', detail='cryo_detail') |
67
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
80 |
6b0f7364f3bf
Inventory-related game state.
Jeremy Thurgood <firxen@gmail.com>
parents:
60
diff
changeset
|
81 self.assert_inventory_item('titanium_leg', True) |
190
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
82 self.assert_detail_thing('cryo.titanium_leg', False) |
452
fdf3a6dd476b
Walkthrough test /almost/ finished.
Jeremy Thurgood <firxen@gmail.com>
parents:
355
diff
changeset
|
83 self.assert_game_data('contains_titanium_leg', False, 'cryo.unit.1') |
190
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
84 |
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
85 def test_cryo_unit_detail(self): |
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
86 "The cryo unit thing opens a detail window." |
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
87 |
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
88 resp = self.interact_thing('cryo.unit.1') |
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
89 |
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
90 self.assertEquals('cryo_detail', resp.detail_view) |
30f2308c1efc
Fix tests and add a (currently unhooked) laser welder.
Jeremy Thurgood <firxen@gmail.com>
parents:
98
diff
changeset
|
91 |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
92 def test_pipes_unchopped_hand(self): |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
93 "Touch the unchopped cryopipes with the hand. No change." |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
94 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
95 self.assert_game_data('fixed', True, 'cryo.pipe.left') |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
96 self.assert_game_data('fixed', True, 'cryo.pipe.right.top') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
97 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom') |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
98 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
99 self.assertNotEquals(None, self.interact_thing('cryo.pipe.left')) |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
100 self.assertNotEquals(None, self.interact_thing('cryo.pipe.right.top')) |
536 | 101 self.assertNotEquals(None, |
102 self.interact_thing('cryo.pipe.right.bottom')) | |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
103 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
104 self.assert_game_data('fixed', True, 'cryo.pipe.left') |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
105 self.assert_game_data('fixed', True, 'cryo.pipe.right.top') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
106 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom') |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
107 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
108 def test_pipes_chopped_hand(self): |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
109 "Touch the chopped cryopipes with the hand. No change." |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
110 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
111 self.set_game_data('fixed', False, 'cryo.pipe.left') |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
112 self.set_game_data('fixed', False, 'cryo.pipe.right.top') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
113 self.set_game_data('fixed', False, 'cryo.pipe.right.bottom') |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
114 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
115 self.assertEquals(None, self.interact_thing('cryo.pipe.left')) |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
116 self.assertEquals(None, self.interact_thing('cryo.pipe.right.top')) |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
117 self.assertEquals(None, self.interact_thing('cryo.pipe.right.bottom')) |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
118 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
119 self.assert_game_data('fixed', False, 'cryo.pipe.left') |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
120 self.assert_game_data('fixed', False, 'cryo.pipe.right.top') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
121 self.assert_game_data('fixed', False, 'cryo.pipe.right.bottom') |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
122 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
123 def test_pipes_unchopped_machete(self): |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
124 "Touch the unchopped cryopipes with the machete. They chop." |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
125 |
254 | 126 self.state.add_inventory_item('machete') |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
127 self.assert_game_data('fixed', True, 'cryo.pipe.left') |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
128 self.assert_game_data('fixed', True, 'cryo.pipe.right.top') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
129 self.assert_game_data('fixed', True, 'cryo.pipe.right.bottom') |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
130 self.assert_item_exists('cryo_pipe.0', False) |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
131 self.assert_item_exists('cryo_pipe.1', False) |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
132 self.assert_item_exists('cryo_pipe.2', False) |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
133 |
536 | 134 self.assertNotEquals( |
135 None, self.interact_thing('cryo.pipe.left', 'machete')) | |
136 self.assertNotEquals( | |
137 None, self.interact_thing('cryo.pipe.right.top', 'machete')) | |
138 self.assertNotEquals( | |
139 None, self.interact_thing('cryo.pipe.right.bottom', 'machete')) | |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
140 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
141 self.assert_game_data('fixed', False, 'cryo.pipe.left') |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
142 self.assert_game_data('fixed', False, 'cryo.pipe.right.top') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
143 self.assert_game_data('fixed', False, 'cryo.pipe.right.bottom') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
144 self.assert_item_exists('tube_fragment.0') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
145 self.assert_item_exists('tube_fragment.1') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
146 self.assert_item_exists('tube_fragment.2') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
147 self.assert_inventory_item('tube_fragment.0', True) |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
148 self.assert_inventory_item('tube_fragment.1', True) |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
149 self.assert_inventory_item('tube_fragment.2', True) |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
150 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
151 def test_pipes_chopped_machete(self): |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
152 "Touch the chopped cryopipes with the machete. No change." |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
153 |
254 | 154 self.state.add_inventory_item('machete') |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
155 self.set_game_data('fixed', False, 'cryo.pipe.left') |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
156 self.set_game_data('fixed', False, 'cryo.pipe.right.top') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
157 self.set_game_data('fixed', False, 'cryo.pipe.right.bottom') |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
158 |
536 | 159 self.assertEquals( |
160 None, self.interact_thing('cryo.pipe.left', 'machete')) | |
161 self.assertEquals( | |
162 None, self.interact_thing('cryo.pipe.right.top', 'machete')) | |
163 self.assertEquals( | |
164 None, self.interact_thing('cryo.pipe.right.bottom', 'machete')) | |
247
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
165 |
0bad554d0926
More tests, some cryo room fixes and docs in the build.
Jeremy Thurgood <firxen@gmail.com>
parents:
190
diff
changeset
|
166 self.assert_game_data('fixed', False, 'cryo.pipe.left') |
355
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
167 self.assert_game_data('fixed', False, 'cryo.pipe.right.top') |
bfb6c682b4fb
Updated walkthrough test as far as completed environmental puzzle.
Jeremy Thurgood <firxen@gmail.com>
parents:
254
diff
changeset
|
168 self.assert_game_data('fixed', False, 'cryo.pipe.right.bottom') |