1 2from PyObjCTools.TestSupport import * 3from Quartz import * 4 5class TestQuartzFilterManager (TestCase): 6 @min_os_level('10.5') 7 def testMethods(self): 8 self.assertResultIsBOOL(QuartzFilterManager.selectFilter_) 9 10 @min_os_level('10.5') 11 def testConstants(self): 12 self.assertIsInstance(kQuartzFilterManagerDidAddFilterNotification, unicode) 13 self.assertIsInstance(kQuartzFilterManagerDidRemoveFilterNotification, unicode) 14 self.assertIsInstance(kQuartzFilterManagerDidModifyFilterNotification, unicode) 15 self.assertIsInstance(kQuartzFilterManagerDidSelectFilterNotification, unicode) 16 17 18 @min_os_level('10.6') 19 @expectedFailure 20 def testConstants10_6(self): 21 # The following definitions are documented for 10.5, but aren't actually 22 # exported from the framework: 23 self.assertIsInstance(kQuartzFilterApplicationDomain, unicode) 24 self.assertIsInstance(kQuartzFilterPDFWorkflowDomain, unicode) 25 self.assertIsInstance(kQuartzFilterPrintingDomain, unicode) 26 27 28if __name__ == "__main__": 29 main() 30