1
2from PyObjCTools.TestSupport import *
3from QTKit import *
4
5class TestQTUtilities (TestCase):
6    def testFunctions(self):
7        v = QTStringForOSType(15490)
8        self.assertIsInstance(v, unicode)
9
10        w = QTOSTypeForString(v)
11        self.assertIsInstance(w, (int, long))
12        self.assertEqual(w, 15490)
13
14
15if __name__ == "__main__":
16    main()
17