summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2009-12-28 18:28:03 +0100
committerGian Mario Tagliaretti <gianmt@gnome.org>2009-12-28 18:28:03 +0100
commit7bc2673f92138b1804d8eba091942d14d8884f90 (patch)
tree849719a2dc416d993a731797ead51fd45d65fbe0 /tests
parent3d5056ad766d6856d8d6459fe9b377de2f0fd172 (diff)
downloadpygobject-7bc2673f92138b1804d8eba091942d14d8884f90.tar.gz
pygobject-7bc2673f92138b1804d8eba091942d14d8884f90.tar.xz
pygobject-7bc2673f92138b1804d8eba091942d14d8884f90.zip
Wrap gio.EmblemedIcon.get_emblems() and add a test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gicon.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_gicon.py b/tests/test_gicon.py
index 734518e..5ce7ece 100644
--- a/tests/test_gicon.py
+++ b/tests/test_gicon.py
@@ -102,3 +102,10 @@ class TestThemedIcon(unittest.TestCase):
self.assertEquals(self.icon.get_names(), ['open'])
self.icon.append_name('close')
self.assertEquals(self.icon.get_names(), ['open', 'close'])
+
+class TestEmblemedIcon(unittest.TestCase):
+ def test_emblemed_icon(self):
+ icon = gio.FileIcon(gio.File('foo.png'))
+ emblem = gio.Emblem(icon)
+ emblemed = gio.EmblemedIcon(icon, emblem)
+ self.assertEquals(emblemed.get_emblems()[0], emblem)