Mercurial > boomslang
comparison gamelib/tests/game_logic_utils.py @ 536:49b6a3d31ee7
PEP-8 tests.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 12:05:13 +0200 |
parents | 0ce08d5e2acb |
children | d6ded808cc33 |
comparison
equal
deleted
inserted
replaced
535:2d87cb7eee50 | 536:49b6a3d31ee7 |
---|---|
5 | 5 |
6 # Monkey-patch albow.resource.get_image to not do alpha-conversion, | 6 # Monkey-patch albow.resource.get_image to not do alpha-conversion, |
7 # which would require pygame display intialisation, which we don't | 7 # which would require pygame display intialisation, which we don't |
8 # really want in the tests. | 8 # really want in the tests. |
9 import albow.resource | 9 import albow.resource |
10 | |
10 | 11 |
11 def get_image_unoptimized(*names, **kw): | 12 def get_image_unoptimized(*names, **kw): |
12 kw.setdefault('optimize', False) | 13 kw.setdefault('optimize', False) |
13 return albow.resource._get_image(names, **kw) | 14 return albow.resource._get_image(names, **kw) |
14 | 15 |
86 result = target_obj.interact(item_obj) | 87 result = target_obj.interact(item_obj) |
87 return self.handle_result(result) | 88 return self.handle_result(result) |
88 | 89 |
89 def close_detail(self): | 90 def close_detail(self): |
90 self.state.set_current_detail(None) | 91 self.state.set_current_detail(None) |
91 |