1from Foundation import * 2from PyObjCTools.TestSupport import * 3 4 5class TestNSScriptKeyValueCodingHelper (NSObject): 6 def insertValue_atIndex_inPropertyWithKey_(self, a, b, c): pass 7 def removeValueAtIndex_fromPropertyWithKey_(self, a, b): pass 8 def replaceValueAtIndex_inPropertyWithKey_withValue_(self, a, b, c): pass 9 10 11class TestNSScriptKeyValueCoding (TestCase): 12 def testMethods(self): 13 self.assertArgHasType(TestNSScriptKeyValueCodingHelper.insertValue_atIndex_inPropertyWithKey_, 1, objc._C_NSUInteger) 14 self.assertArgHasType(TestNSScriptKeyValueCodingHelper.removeValueAtIndex_fromPropertyWithKey_, 0, objc._C_NSUInteger) 15 self.assertArgHasType(TestNSScriptKeyValueCodingHelper.replaceValueAtIndex_inPropertyWithKey_withValue_, 0, objc._C_NSUInteger) 16 17if __name__ == "__main__": 18 main() 19