Source

pyobjc / pyobjc-framework-Cocoa / PyObjCTest / test_nsstatusbar.py


from PyObjCTools.TestSupport import *
from AppKit import *

class TestNSStatusBar (TestCase):
    def testConstants(self):
        self.assertEqual(NSVariableStatusItemLength, -1)
        self.assertEqual(NSSquareStatusItemLength, -2)

    def testMethods(self):
        self.assertResultIsBOOL(NSStatusBar.isVertical)

if __name__ == "__main__":
    main()