1 2from PyObjCTools.TestSupport import * 3from Quartz.QuartzCore import * 4 5class TestCATextLayer (TestCase): 6 7 @min_os_level('10.5') 8 def testMethods(self): 9 self.assertResultIsBOOL(CATextLayer.isWrapped) 10 self.assertArgIsBOOL(CATextLayer.setWrapped_, 0) 11 12 @min_os_level('10.5') 13 def testConstants(self): 14 self.assertIsInstance(kCATruncationNone, unicode) 15 self.assertIsInstance(kCATruncationStart, unicode) 16 self.assertIsInstance(kCATruncationEnd, unicode) 17 self.assertIsInstance(kCATruncationMiddle, unicode) 18 self.assertIsInstance(kCAAlignmentNatural, unicode) 19 self.assertIsInstance(kCAAlignmentLeft, unicode) 20 self.assertIsInstance(kCAAlignmentRight, unicode) 21 self.assertIsInstance(kCAAlignmentCenter, unicode) 22 self.assertIsInstance(kCAAlignmentJustified, unicode) 23 24 25if __name__ == "__main__": 26 main() 27