1 2from PyObjCTools.TestSupport import * 3from Quartz.QuartzCore import * 4 5try: 6 unicode 7except NameError: 8 unicode = str 9 10class TestCAScrollLayer (TestCase): 11 @min_os_level('10.5') 12 def testConstants(self): 13 self.assertIsInstance(kCAScrollNone, unicode) 14 self.assertIsInstance(kCAScrollVertically, unicode) 15 self.assertIsInstance(kCAScrollHorizontally, unicode) 16 self.assertIsInstance(kCAScrollBoth, unicode) 17 18 19if __name__ == "__main__": 20 main() 21