1
2from PyObjCTools.TestSupport import *
3from QTKit import *
4
5try:
6    unicode
7except NameError:
8    unicode = str
9
10try:
11    long
12except NameError:
13    long = int
14
15class TestQTUtilities (TestCase):
16    def testFunctions(self):
17        v = QTStringForOSType(15490)
18        self.assertIsInstance(v, unicode)
19
20        w = QTOSTypeForString(v)
21        self.assertIsInstance(w, (int, long))
22        self.assertEqual(w, 15490)
23
24
25if __name__ == "__main__":
26    main()
27