1 2from PyObjCTools.TestSupport import * 3from SyncServices import * 4 5class TestISyncManager (TestCase): 6 def testMethods(self): 7 self.assertResultIsBOOL(ISyncManager.isEnabled) 8 self.assertResultIsBOOL(ISyncManager.registerSchemaWithBundlePath_) 9 10 def testConstants(self): 11 self.assertIsInstance(ISyncAvailabilityChangedNotification, unicode) 12 self.assertIsInstance(ISyncServerUnavailableException, unicode) 13 14 @min_os_level('10.6') 15 def testMethods10_6(self): 16 self.assertArgIsBOOL(ISyncManager.clientWithIdentifier_needsSyncing_, 1) 17 18if __name__ == "__main__": 19 main() 20