Source

pyobjc / pyobjc-framework-QTKit / PyObjCTest / test_qtformatdescription.py

Full commit

from PyObjCTools.TestSupport import *
from QTKit import *

try:
    unicode
except NameError:
    unicode = str

class TestQTFormatDescription (TestCase):
    def testConstants(self):
        self.assertIsInstance(QTFormatDescriptionAudioStreamBasicDescriptionAttribute, unicode)
        self.assertIsInstance(QTFormatDescriptionAudioMagicCookieAttribute, unicode)
        self.assertIsInstance(QTFormatDescriptionAudioChannelLayoutAttribute, unicode)
        self.assertIsInstance(QTFormatDescriptionVideoCleanApertureDisplaySizeAttribute, unicode)
        self.assertIsInstance(QTFormatDescriptionVideoProductionApertureDisplaySizeAttribute, unicode)
        self.assertIsInstance(QTFormatDescriptionVideoEncodedPixelsSizeAttribute, unicode)

    def testMethods(self):
        self.assertResultIsBOOL(QTFormatDescription.isEqualToFormatDescription_)


if __name__ == "__main__":
    main()