1 2from PyObjCTools.TestSupport import * 3from Quartz.QuartzComposer import * 4 5class TestQCView (TestCase): 6 def testConstants(self): 7 self.assertIsInstance(QCViewDidStartRenderingNotification, unicode) 8 self.assertIsInstance(QCViewDidStopRenderingNotification, unicode) 9 10 def testMethods(self): 11 self.assertResultIsBOOL(QCView.loadCompositionFromFile_) 12 13 self.assertArgIsBOOL(QCView.setAutostartsRendering_, 0) 14 self.assertResultIsBOOL(QCView.autostartsRendering) 15 16 self.assertResultIsBOOL(QCView.startRendering) 17 self.assertResultIsBOOL(QCView.isRendering) 18 19 @min_os_level('10.5') 20 def testMethods10_5(self): 21 self.assertResultIsBOOL(QCView.loadComposition_) 22 self.assertResultIsBOOL(QCView.renderAtTime_arguments_) 23 self.assertResultIsBOOL(QCView.isPausedRendering) 24 25if __name__ == "__main__": 26 main() 27