Source

pyobjc / pyobjc-framework-Quartz / PyObjCTest / test_qcview.py

Full commit

from PyObjCTools.TestSupport import *
from Quartz.QuartzComposer import *

try:
    unicode
except NameError:
    unicode = str

class TestQCView (TestCase):
    def testConstants(self):
        self.assertIsInstance(QCViewDidStartRenderingNotification, unicode)
        self.assertIsInstance(QCViewDidStopRenderingNotification, unicode)

    def testMethods(self):
        self.assertResultIsBOOL(QCView.loadCompositionFromFile_)

        self.assertArgIsBOOL(QCView.setAutostartsRendering_, 0)
        self.assertResultIsBOOL(QCView.autostartsRendering)

        self.assertResultIsBOOL(QCView.startRendering)
        self.assertResultIsBOOL(QCView.isRendering)

    @min_os_level('10.5')
    def testMethods10_5(self):
        self.assertResultIsBOOL(QCView.loadComposition_)
        self.assertResultIsBOOL(QCView.renderAtTime_arguments_)
        self.assertResultIsBOOL(QCView.isPausedRendering)

if __name__ == "__main__":
    main()