Source

pyobjc / pyobjc-framework-OpenDirectory / PyObjCTest / test_odquery.py

from PyObjCTools.TestSupport import *

import OpenDirectory

class TestODQuery (TestCase):
    def testMethods(self):
        self.assertArgIsOut(OpenDirectory.ODQuery.queryWithNode_forRecordTypes_attribute_matchType_queryValues_returnAttributes_maximumResults_error_, 7)
        self.assertArgIsOut(OpenDirectory.ODQuery.initWithNode_forRecordTypes_attribute_matchType_queryValues_returnAttributes_maximumResults_error_, 7)

        self.assertArgIsBOOL(OpenDirectory.ODQuery.resultsAllowingPartial_error_, 0)
        self.assertArgIsOut(OpenDirectory.ODQuery.resultsAllowingPartial_error_, 1)

if __name__ == "__main__":
    main()