1from PyObjCTools.TestSupport import * 2from Quartz.QuartzCore import * 3 4try: 5 unicode 6except NameError: 7 unicode = str 8 9class TestCIContext (TestCase): 10 def testConstants(self): 11 self.assertIsInstance(kCIContextOutputColorSpace, unicode) 12 self.assertIsInstance(kCIContextWorkingColorSpace, unicode) 13 self.assertIsInstance(kCIContextUseSoftwareRenderer, unicode) 14 15 16 def testMethods(self): 17 self.assertArgIsOut(CIContext.render_toBitmap_rowBytes_bounds_format_colorSpace_, 1) 18 self.assertArgIsVariableSize(CIContext.render_toBitmap_rowBytes_bounds_format_colorSpace_, 1) 19 20if __name__ == "__main__": 21 main() 22