1 2from PyObjCTools.TestSupport import * 3from Quartz.QuartzComposer import * 4 5class TestQCCompositionPickerView (TestCase): 6 7 @min_os_level('10.5') 8 def testConstants(self): 9 self.assertIsInstance(QCCompositionPickerViewDidSelectCompositionNotification, unicode) 10 11 @min_os_level('10.5') 12 def testMethods(self): 13 self.assertResultIsBOOL(QCCompositionPickerView.showsCompositionNames) 14 self.assertArgIsBOOL(QCCompositionPickerView.setShowsCompositionNames_, 0) 15 16 self.assertResultIsBOOL(QCCompositionPickerView.allowsEmptySelection) 17 self.assertArgIsBOOL(QCCompositionPickerView.setAllowsEmptySelection_, 0) 18 19 self.assertResultIsBOOL(QCCompositionPickerView.isAnimating) 20 21 self.assertResultIsBOOL(QCCompositionPickerView.drawsBackground) 22 self.assertArgIsBOOL(QCCompositionPickerView.setDrawsBackground_, 0) 23 24 25if __name__ == "__main__": 26 main() 27