Source

pyobjc / pyobjc-framework-Accounts / PyObjCTest / test_acaccountstore.py

Full commit
import sys

try:
    unicode
except NameError:
    unicode = str

if sys.maxsize > 2 ** 32:
    from PyObjCTools.TestSupport import *
    import Accounts

    class TestACAccountStore (TestCase):
        @min_os_level("10.8")
        def testConstants(self):
            self.assertHasAttr(Accounts, "ACAccountStoreDidChangeNotification")
            self.assertIsInstance(Accounts.ACAccountStoreDidChangeNotification, unicode)

    if __name__ == "__main__":
        main()