comparison gamelib/tests/test_scene_interactions_cryo.py @ 725:65e9b5c40233 pyntnclick

Detail handling in test_scene_interactions_cryo
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 15 Jan 2013 21:57:42 +0200
parents 49b6a3d31ee7
children db0762f1de5a
comparison
equal deleted inserted replaced
724:11daadcb06d6 725:65e9b5c40233
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.assert_game_data('contains_titanium_leg', True, 'cryo.unit.1')
73 self.state.set_current_detail('cryo_detail')
74 self.assert_inventory_item('titanium_leg', False) 73 self.assert_inventory_item('titanium_leg', False)
75 self.assert_detail_thing('cryo.titanium_leg', True) 74 self.assert_detail_thing('cryo.titanium_leg', True)
76 75
77 self.interact_thing('cryo.titanium_leg') 76 self.interact_thing('cryo.titanium_leg', detail='cryo_detail')
78 77
79 self.assert_inventory_item('titanium_leg', True) 78 self.assert_inventory_item('titanium_leg', True)
80 self.assert_detail_thing('cryo.titanium_leg', False) 79 self.assert_detail_thing('cryo.titanium_leg', False)
81 self.close_detail() 80 self.close_detail()
82 self.assert_game_data('contains_titanium_leg', False, 'cryo.unit.1') 81 self.assert_game_data('contains_titanium_leg', False, 'cryo.unit.1')