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