1 2from PyObjCTools.TestSupport import * 3from Quartz.QuartzCore import * 4 5class TestCIImage (TestCase): 6 def testConstants(self): 7 self.assertIsInstance(kCIFormatARGB8, (int, long)) 8 self.assertIsInstance(kCIFormatRGBA16, (int, long)) 9 self.assertIsInstance(kCIFormatRGBAf, (int, long)) 10 self.assertIsInstance(kCIImageColorSpace, unicode) 11 12 def testMethods(self): 13 self.assertArgIsBOOL(CIImage.imageWithTexture_size_flipped_colorSpace_, 2) 14 self.assertArgIsBOOL(CIImage.initWithTexture_size_flipped_colorSpace_, 2) 15 16if __name__ == "__main__": 17 main() 18