davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=4b8ddcff7d2333afba38a76774c7d18c5e0ed93b

commit 4b8ddcff7d2333afba38a76774c7d18c5e0ed93b
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Thu Mar 1 18:32:46 2018 +0100

    Elm: add test for elm_image_get() before a set() call
---
 tests/elementary/test_02_image_icon.py | 7 ++++---
 1 file 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):
         self.assertEqual(Eo.parent_get(self.o), self.w)
 
     def testImageFile(self):
-        self.o.file = os.path.join(script_path, u"icon.png")
-        self.assertEqual(self.o.file[0],
-                         os.path.join(script_path, u"icon.png"))
+        img_file = os.path.join(script_path, u"icon.png")
+        self.assertEqual(self.o.file, (None, None))
+        self.o.file = img_file
+        self.assertEqual(self.o.file, (img_file, None))
         self.assertEqual(self.o.object_size, (48, 48))
 
     def testImageFileException(self):

-- 


Reply via email to