import unittest

from common import gtk


class ImageTest(unittest.TestCase):
    def test_factory_from_icon_name(self):
        image = gtk.image_new_from_icon_name('gtk-ok', gtk.ICON_SIZE_MENU)
        self.assertEqual(image.get_icon_name(), ('gtk-ok', gtk.ICON_SIZE_MENU))

if __name__ == '__main__':
    unittest.main()
