Source

pyobjc / pyobjc-framework-EventKit / PyObjCTest / test_ekobject.py

import sys
from PyObjCTools.TestSupport import *

if sys.maxsize > 2**32:
    import EventKit

    class TestEKEvent (TestCase):
        @min_os_level('10.8')
        def testBasic(self):
            self.assertTrue(hasattr(EventKit, "EKObject"))

        @min_os_level('10.8')
        def testMethods10_8(self):
            self.assertResultIsBOOL(EventKit.EKObject.hasChanges)
            self.assertResultIsBOOL(EventKit.EKObject.isNew)
            self.assertResultIsBOOL(EventKit.EKObject.refresh)

if __name__ == '__main__':
    main()