1 2from PyObjCTools.TestSupport import * 3from AppKit import * 4 5try: 6 unicode 7except NameError: 8 unicode = str 9 10class TestNSNib (TestCase): 11 def testConstants(self): 12 self.assertIsInstance(NSNibOwner, unicode) 13 self.assertIsInstance(NSNibTopLevelObjects, unicode) 14 15 def testMethods(self): 16 self.assertResultIsBOOL(NSNib.instantiateNibWithOwner_topLevelObjects_) 17 self.assertArgIsOut(NSNib.instantiateNibWithOwner_topLevelObjects_, 1) 18 19 @min_os_level('10.8') 20 def testMethods10_8(self): 21 self.assertResultIsBOOL(NSNib.instantiateWithOwner_topLevelObjects_) 22 self.assertArgIsOut(NSNib.instantiateWithOwner_topLevelObjects_, 1) 23 24 25if __name__ == "__main__": 26 main() 27