1. Ronald Oussoren
  2. pyobjc

Source

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

from PyObjCTools.TestSupport import *
import CFOpenDirectory

try:
    long
except NameError:
    long = int

class TestCFODSession (TestCase):
    def testMethods(self):
        self.assertIsInstance(CFOpenDirectory.ODSessionGetTypeID(), (int, long))

        self.assertResultIsCFRetained(CFOpenDirectory.ODSessionCreate)
        self.assertArgIsOut(CFOpenDirectory.ODSessionCreate, 2)

        self.assertResultIsCFRetained(CFOpenDirectory.ODSessionCopyNodeNames)
        self.assertArgIsOut(CFOpenDirectory.ODSessionCopyNodeNames, 2)

if __name__ == "__main__":
    main()