Source

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

from PyObjCTools.TestSupport import *
import objc
import OpenDirectory

try:
    unicode
except NameError:
    unicode = str

class TestOpenDirectory (TestCase):
    def testConstants(self):
        self.assertIsInstance(OpenDirectory.ODFrameworkErrorDomain, unicode)

    def testProtocols(self):
        objc.protocolNamed('ODQueryDelegate')


if __name__ == "__main__":
    main()