Mercurial > boomslang
comparison 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 |
comparison
equal
deleted
inserted
replaced
583:66c2e084b8b3 | 584:96ff2d8a8a9a |
---|---|
50 | 50 |
51 def test_load_image(self): | 51 def test_load_image(self): |
52 image = self.res.load_image('pyntnclick/hand.png') | 52 image = self.res.load_image('pyntnclick/hand.png') |
53 self.assertTrue(isinstance(image, Surface)) | 53 self.assertTrue(isinstance(image, Surface)) |
54 | 54 |
55 def test_load_image_fragments(self): | |
56 image = self.res.load_image(['pyntnclick', 'hand.png']) | |
57 self.assertTrue(isinstance(image, Surface)) | |
58 | |
55 def test_load_image_different_basedir(self): | 59 def test_load_image_different_basedir(self): |
56 image = self.res.load_image('hand.png', basedir='images/pyntnclick') | 60 image = self.res.load_image('hand.png', basedir='images/pyntnclick') |
57 self.assertTrue(isinstance(image, Surface)) | 61 self.assertTrue(isinstance(image, Surface)) |
58 | 62 |
59 def test_load_missing(self): | 63 def test_load_missing(self): |