diff 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
line wrap: on
line diff
--- a/gamelib/tests/test_scene_interactions_cryo.py	Sun Aug 29 00:54:12 2010 +0200
+++ b/gamelib/tests/test_scene_interactions_cryo.py	Sun Aug 29 00:58:14 2010 +0200
@@ -69,16 +69,17 @@
     def test_cryo_unit_alpha_full_hand(self):
         "The cryo unit has the leg in it and we touch it. We get the leg."
 
+        self.assert_game_data('contains_titanium_leg', True, 'cryo.unit.1')
         self.state.set_current_detail('cryo_detail')
-        self.assert_game_data('contains_titanium_leg', True, 'cryo.unit.1')
         self.assert_inventory_item('titanium_leg', False)
         self.assert_detail_thing('cryo.titanium_leg', True)
 
         self.interact_thing('cryo.titanium_leg')
 
-        self.assert_game_data('contains_titanium_leg', False, 'cryo.unit.1')
         self.assert_inventory_item('titanium_leg', True)
         self.assert_detail_thing('cryo.titanium_leg', False)
+        self.close_detail()
+        self.assert_game_data('contains_titanium_leg', False, 'cryo.unit.1')
 
     def test_cryo_unit_detail(self):
         "The cryo unit thing opens a detail window."