diff pyntnclick/tests/test_resources.py @ 587:f20d211d2c91 pyntnclick

load_image() -> get_image() and more docs.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 11 Feb 2012 17:02:26 +0200
parents 96ff2d8a8a9a
children 85153f422522
line wrap: on
line diff
--- a/pyntnclick/tests/test_resources.py	Sat Feb 11 16:56:01 2012 +0200
+++ b/pyntnclick/tests/test_resources.py	Sat Feb 11 17:02:26 2012 +0200
@@ -48,21 +48,21 @@
             data_path('images/pyntnclick/hand.png'),
             self.res.get_resource_path('images/pyntnclick/hand.png'))
 
-    def test_load_image(self):
-        image = self.res.load_image('pyntnclick/hand.png')
+    def test_get_image(self):
+        image = self.res.get_image('pyntnclick/hand.png')
         self.assertTrue(isinstance(image, Surface))
 
-    def test_load_image_fragments(self):
-        image = self.res.load_image(['pyntnclick', 'hand.png'])
+    def test_get_image_fragments(self):
+        image = self.res.get_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')
+    def test_get_image_different_basedir(self):
+        image = self.res.get_image('hand.png', basedir='images/pyntnclick')
         self.assertTrue(isinstance(image, Surface))
 
     def test_load_missing(self):
         try:
-            self.res.load_image('should_not_exist')
+            self.res.get_image('should_not_exist')
             self.fail('Expected ResourceNotFound error.')
         except ResourceNotFound, e:
             self.assertEqual('images/should_not_exist', e.args[0])