from PyObjCTools.TestSupport import *
from AppKit import *
class TestNSButton (TestCase):
def testMethods(self):
self.assertResultIsBOOL(NSButton.isBordered)
self.assertArgIsBOOL(NSButton.setBordered_, 0)
self.assertResultIsBOOL(NSButton.isTransparent)
self.assertArgIsBOOL(NSButton.setTransparent_, 0)
self.assertArgIsOut(NSButton.getPeriodicDelay_interval_, 0)
self.assertArgIsOut(NSButton.getPeriodicDelay_interval_, 1)
self.assertResultIsBOOL(NSButton.performKeyEquivalent_)
self.assertResultIsBOOL(NSButton.allowsMixedState)
self.assertArgIsBOOL(NSButton.setAllowsMixedState_, 0)
if __name__ == "__main__":
main()
|