Mercurial > boomslang
diff pyntnclick/tests/test_resources.py @ 584:96ff2d8a8a9a pyntnclick
Allow list of image name fragments in load_image. Also, some docs.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 16:45:07 +0200 |
parents | 27809609eeca |
children | f20d211d2c91 |
line wrap: on
line diff
--- a/pyntnclick/tests/test_resources.py Sat Feb 11 16:43:05 2012 +0200 +++ b/pyntnclick/tests/test_resources.py Sat Feb 11 16:45:07 2012 +0200 @@ -52,6 +52,10 @@ image = self.res.load_image('pyntnclick/hand.png') self.assertTrue(isinstance(image, Surface)) + def test_load_image_fragments(self): + image = self.res.load_image(['pyntnclick', 'hand.png']) + self.assertTrue(isinstance(image, Surface)) + def test_load_image_different_basedir(self): image = self.res.load_image('hand.png', basedir='images/pyntnclick') self.assertTrue(isinstance(image, Surface))