summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-03-01 18:32:46 +0100
committerDave Andreoli <dave@gurumeditation.it>2018-03-01 18:32:46 +0100
commit4b8ddcff7d2333afba38a76774c7d18c5e0ed93b (patch)
treeef2d5810cc13ed38bbc243ddac7923769d082768
parent00d92cbebe4f327e66f61718430f082d6f402ebc (diff)
Elm: add test for elm_image_get() before a set() call
-rw-r--r--tests/elementary/test_02_image_icon.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/elementary/test_02_image_icon.py b/tests/elementary/test_02_image_icon.py
index cc0b48a..b106a10 100644
--- a/tests/elementary/test_02_image_icon.py
+++ b/tests/elementary/test_02_image_icon.py
@@ -29,9 +29,10 @@ class TestElmImage(unittest.TestCase):
29 self.assertEqual(Eo.parent_get(self.o), self.w) 29 self.assertEqual(Eo.parent_get(self.o), self.w)
30 30
31 def testImageFile(self): 31 def testImageFile(self):
32 self.o.file = os.path.join(script_path, u"icon.png") 32 img_file = os.path.join(script_path, u"icon.png")
33 self.assertEqual(self.o.file[0], 33 self.assertEqual(self.o.file, (None, None))
34 os.path.join(script_path, u"icon.png")) 34 self.o.file = img_file
35 self.assertEqual(self.o.file, (img_file, None))
35 self.assertEqual(self.o.object_size, (48, 48)) 36 self.assertEqual(self.o.object_size, (48, 48))
36 37
37 def testImageFileException(self): 38 def testImageFileException(self):