Mercurial > pyntnclick
comparison gamelib/tests/test_scene_interactions_cryo.py @ 452:fdf3a6dd476b
Walkthrough test /almost/ finished.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 29 Aug 2010 00:58:14 +0200 |
parents | bfb6c682b4fb |
children | 49b6a3d31ee7 |
comparison
equal
deleted
inserted
replaced
451:8b1951cb7710 | 452:fdf3a6dd476b |
---|---|
67 self.assert_current_scene('cryo') | 67 self.assert_current_scene('cryo') |
68 | 68 |
69 def test_cryo_unit_alpha_full_hand(self): | 69 def test_cryo_unit_alpha_full_hand(self): |
70 "The cryo unit has the leg in it and we touch it. We get the leg." | 70 "The cryo unit has the leg in it and we touch it. We get the leg." |
71 | 71 |
72 self.assert_game_data('contains_titanium_leg', True, 'cryo.unit.1') | |
72 self.state.set_current_detail('cryo_detail') | 73 self.state.set_current_detail('cryo_detail') |
73 self.assert_game_data('contains_titanium_leg', True, 'cryo.unit.1') | |
74 self.assert_inventory_item('titanium_leg', False) | 74 self.assert_inventory_item('titanium_leg', False) |
75 self.assert_detail_thing('cryo.titanium_leg', True) | 75 self.assert_detail_thing('cryo.titanium_leg', True) |
76 | 76 |
77 self.interact_thing('cryo.titanium_leg') | 77 self.interact_thing('cryo.titanium_leg') |
78 | 78 |
79 self.assert_game_data('contains_titanium_leg', False, 'cryo.unit.1') | |
80 self.assert_inventory_item('titanium_leg', True) | 79 self.assert_inventory_item('titanium_leg', True) |
81 self.assert_detail_thing('cryo.titanium_leg', False) | 80 self.assert_detail_thing('cryo.titanium_leg', False) |
81 self.close_detail() | |
82 self.assert_game_data('contains_titanium_leg', False, 'cryo.unit.1') | |
82 | 83 |
83 def test_cryo_unit_detail(self): | 84 def test_cryo_unit_detail(self): |
84 "The cryo unit thing opens a detail window." | 85 "The cryo unit thing opens a detail window." |
85 | 86 |
86 resp = self.interact_thing('cryo.unit.1') | 87 resp = self.interact_thing('cryo.unit.1') |