import unittest

from common import gtk


class ImageMenuItemTest(unittest.TestCase):
    def test_create(self):
        item = gtk.ImageMenuItem('foo')
        image = gtk.image_new_from_icon_name('gtk-ok', gtk.ICON_SIZE_MENU)
        item.set_image(image)
        self.assertEqual(item.get_image().get_icon_name(), ('gtk-ok', gtk.ICON_SIZE_MENU))

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