1from PyObjCTools.TestSupport import *
2import AppKit
3import objc
4
5class ContantTest (TestCase):
6
7    def testNSFloatingWindowLevel(self):
8        # NSFloatingWindowLevel is a define in Objective-C, up-to 1.0rc1
9        # we didn't correctly pick up this define due to a bug in the code.
10        self.assert_(hasattr(AppKit, 'NSFloatingWindowLevel'))
11        self.assert_(isinstance(AppKit.NSFloatingWindowLevel, int))
12
13    def testNSAnyEventMask(self):
14        self.assertEquals(AppKit.NSAnyEventMask, -1)
15
16    def testNSViewFrameDidChangeNotification(self):
17        self.assert_(hasattr(AppKit, 'NSViewFrameDidChangeNotification'))
18        self.assert_(isinstance(AppKit.NSViewFrameDidChangeNotification, unicode))
19
20    def testNSUpArrowFunctionKey(self):
21        self.assert_(hasattr(AppKit, 'NSUpArrowFunctionKey'))
22        self.assert_(isinstance(AppKit.NSUpArrowFunctionKey, unicode))
23
24if __name__ == "__main__":
25    main()
26