Source

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


from PyObjCTools.TestSupport import *
from Quartz.CoreGraphics import *

try:
    long
except NameError:
    long = int

class TestCGBase (TestCase):
    def testConstants(self):
        self.assertIsInstance(CGFLOAT_MIN, float)
        self.assertIsInstance(CGFLOAT_MAX, float)
        self.assertIsInstance(CGFLOAT_IS_DOUBLE, (int, long))

if __name__ == "__main__":
    main()