Mercurial > pyntnclick
diff gamelib/tests/game_logic_utils.py @ 247:0bad554d0926
More tests, some cryo room fixes and docs in the build.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Fri, 27 Aug 2010 13:32:27 +0200 |
parents | 30f2308c1efc |
children | dfc89bc64fdb |
line wrap: on
line diff
--- a/gamelib/tests/game_logic_utils.py Fri Aug 27 13:25:42 2010 +0200 +++ b/gamelib/tests/game_logic_utils.py Fri Aug 27 13:32:27 2010 +0200 @@ -46,6 +46,9 @@ def assert_detail_thing(self, thing, in_detail=True): self.assertEquals(in_detail, thing in self.state.current_detail.things) + def assert_item_exists(self, item, exists=True): + self.assertEquals(exists, item in self.state.items) + def interact_thing(self, thing, item=None, detail=False): item_obj = None if item is not None: