#!/usr/bin/env python

import unittest
import gtk

class TestProps(unittest.TestCase):
    def testGetSetprops(self):
        self.win = gtk.Window()
        self.win.set_properties(resizable=False,
                                title="My Window",
                                urgency_hint=True)
        pps = self.win.get_properties("resizable", "title", "urgency-hint")
        self.assertEqual(pps[0], False)
        self.assertEqual(pps[1], "My Window")
        self.assertEqual(pps[2], True)

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