How to use the pyobjc.pyobjc.pyobjc-framework-SyncServices.PyObjCTest.test_isyncsessiondriver.TestISyncSessionDriverHelper function in pyobjc

To help you get started, we’ve selected a few pyobjc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
def testProtocols(self):
        self.assertIsInstance(protocols.ISyncSessionDriverDataSourceOptionalMethods, objc.informal_protocol)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 2, objc._C_OUT + objc._C_PTR + objc._C_ID)

        self.assertResultHasType(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, objc._C_INT)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 2)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 3)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 4)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_, 1)

        self.assertResultHasType(TestISyncSessionDriverHelper.sessionPullChangesTimeout, objc._C_DBL)
        self.assertArgHasType(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 2)

        self.assertIsInstance(protocols.ISyncSessionDriverDelegate, objc.informal_protocol)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
def testProtocols(self):
        self.assertIsInstance(protocols.ISyncSessionDriverDataSourceOptionalMethods, objc.informal_protocol)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 2, objc._C_OUT + objc._C_PTR + objc._C_ID)

        self.assertResultHasType(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, objc._C_INT)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 2)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 3)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 4)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_, 1)

        self.assertResultHasType(TestISyncSessionDriverHelper.sessionPullChangesTimeout, objc._C_DBL)
        self.assertArgHasType(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 2)

        self.assertIsInstance(protocols.ISyncSessionDriverDelegate, objc.informal_protocol)


        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_, 1)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
def testProtocols(self):
        self.assertIsInstance(protocols.ISyncSessionDriverDataSourceOptionalMethods, objc.informal_protocol)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 2, objc._C_OUT + objc._C_PTR + objc._C_ID)

        self.assertResultHasType(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, objc._C_INT)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 2)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 3)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 4)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_, 1)

        self.assertResultHasType(TestISyncSessionDriverHelper.sessionPullChangesTimeout, objc._C_DBL)
        self.assertArgHasType(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 2)

        self.assertIsInstance(protocols.ISyncSessionDriverDelegate, objc.informal_protocol)


        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_, 1)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
def testProtocols(self):
        self.assertIsInstance(protocols.ISyncSessionDriverDataSourceOptionalMethods, objc.informal_protocol)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 2, objc._C_OUT + objc._C_PTR + objc._C_ID)

        self.assertResultHasType(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, objc._C_INT)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 2)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 3)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 4)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_, 1)

        self.assertResultHasType(TestISyncSessionDriverHelper.sessionPullChangesTimeout, objc._C_DBL)
        self.assertArgHasType(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 2, objc._C_OUT + objc._C_PTR + objc._C_ID)

        self.assertResultHasType(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, objc._C_INT)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 2)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 3)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 4)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_, 1)

        self.assertResultHasType(TestISyncSessionDriverHelper.sessionPullChangesTimeout, objc._C_DBL)
        self.assertArgHasType(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 2)

        self.assertIsInstance(protocols.ISyncSessionDriverDelegate, objc.informal_protocol)


        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willFinishSessionAndReturnError_)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
self.assertIsInstance(protocols.ISyncSessionDriverDataSourceOptionalMethods, objc.informal_protocol)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 2, objc._C_OUT + objc._C_PTR + objc._C_ID)

        self.assertResultHasType(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, objc._C_INT)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 2)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 3)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 4)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_, 1)

        self.assertResultHasType(TestISyncSessionDriverHelper.sessionPullChangesTimeout, objc._C_DBL)
        self.assertArgHasType(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 2)

        self.assertIsInstance(protocols.ISyncSessionDriverDelegate, objc.informal_protocol)


        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willFinishSessionAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willFinishSessionAndReturnError_, 1)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didNegotiateAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didNegotiateAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willNegotiateAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willNegotiateAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didReceiveSyncAlertAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didReceiveSyncAlertAndReturnError_, 1)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
def testProtocols(self):
        self.assertIsInstance(protocols.ISyncSessionDriverDataSourceOptionalMethods, objc.informal_protocol)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgHasType(TestISyncSessionDriverHelper.recordsForEntityName_moreComing_error_, 2, objc._C_OUT + objc._C_PTR + objc._C_ID)

        self.assertResultHasType(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, objc._C_INT)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 2)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 3)
        self.assertArgIsOut(TestISyncSessionDriverHelper.applyChange_forEntityName_remappedRecordIdentifier_formattedRecord_error_, 4)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.deleteAllRecordsForEntityName_error_, 1)

        self.assertResultHasType(TestISyncSessionDriverHelper.sessionPullChangesTimeout, objc._C_DBL)
        self.assertArgHasType(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changedRecordsForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 2)

        self.assertIsInstance(protocols.ISyncSessionDriverDelegate, objc.informal_protocol)


        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 2)

        self.assertIsInstance(protocols.ISyncSessionDriverDelegate, objc.informal_protocol)


        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willFinishSessionAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willFinishSessionAndReturnError_, 1)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didNegotiateAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didNegotiateAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willNegotiateAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willNegotiateAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didReceiveSyncAlertAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didReceiveSyncAlertAndReturnError_, 1)
github apple-open-source / macos / pyobjc / pyobjc / pyobjc-framework-SyncServices / PyObjCTest / test_isyncsessiondriver.py View on Github external
self.assertArgHasType(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.changesForEntityName_moreComing_error_, 2)
        self.assertArgHasType(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 1, objc._C_OUT + objc._C_PTR + objc._C_NSBOOL)
        self.assertArgIsOut(TestISyncSessionDriverHelper.identifiersForRecordsToDeleteForEntityName_moreComing_error_, 2)

        self.assertIsInstance(protocols.ISyncSessionDriverDelegate, objc.informal_protocol)


        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didRegisterClientAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPushAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didPullAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willFinishSessionAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willFinishSessionAndReturnError_, 1)

        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didNegotiateAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didNegotiateAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_willNegotiateAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_willNegotiateAndReturnError_, 1)
        self.assertResultIsBOOL(TestISyncSessionDriverHelper.sessionDriver_didReceiveSyncAlertAndReturnError_)
        self.assertArgIsOut(TestISyncSessionDriverHelper.sessionDriver_didReceiveSyncAlertAndReturnError_, 1)

pyobjc

Python<->ObjC Interoperability Module

MIT
Latest version published 22 days ago

Package Health Score

85 / 100
Full package analysis

Popular pyobjc functions

Similar packages