1from AppKit import * 2from PyObjCTools.TestSupport import * 3 4class TestNSApplicationScriptingHelper (NSObject): 5 def application_delegateHandlesKey_(self, app, key): 6 return 1 7 8 9class TestNSApplicationScripting (TestCase): 10 def testMethods(self): 11 self.failUnlessResultIsBOOL(TestNSApplicationScriptingHelper.application_delegateHandlesKey_) 12 13if __name__ == "__main__": 14 main() 15