from PyObjCTools.TestSupport import *
from Quartz.PDFKit import *
class TestPDFAnnotationButtonWidget (TestCase):
def testConstants(self):
self.assertEqual(kPDFWidgetUnknownControl, -1)
self.assertEqual(kPDFWidgetPushButtonControl, 0)
self.assertEqual(kPDFWidgetRadioButtonControl, 1)
self.assertEqual(kPDFWidgetCheckBoxControl, 2)
@min_os_level('10.5')
def testMethods(self):
self.assertResultIsBOOL(PDFAnnotationButtonWidget.isHighlighted)
self.assertResultIsBOOL(PDFAnnotationButtonWidget.allowsToggleToOff)
if __name__ == "__main__":
main()
|