1 2from PyObjCTools.TestSupport import * 3from Quartz.QuartzCore import * 4 5class TestCAOpenGLLayer (TestCase): 6 @min_os_level('10.5') 7 def testMethods(self): 8 self.assertResultIsBOOL(CAOpenGLLayer.isAsynchronous) 9 self.assertArgIsBOOL(CAOpenGLLayer.setAsynchronous_, 0) 10 11 self.assertResultIsBOOL(CAOpenGLLayer.canDrawInCGLContext_pixelFormat_forLayerTime_displayTime_) 12 self.assertArgIsIn(CAOpenGLLayer.canDrawInCGLContext_pixelFormat_forLayerTime_displayTime_, 3) 13 14 self.assertArgIsIn(CAOpenGLLayer.drawInCGLContext_pixelFormat_forLayerTime_displayTime_, 3) 15 16if __name__ == "__main__": 17 main() 18