Source

pyobjc / pyobjc-framework-AddressBook / PyObjCTest / test_abgroup.py

from PyObjCTools.TestSupport import *
import AddressBook

class TestABGroup (TestCase):
    def testMethods(self):
        self.assertResultIsBOOL(AddressBook.ABGroup.addMember_)
        self.assertResultIsBOOL(AddressBook.ABGroup.removeMember_)
        self.assertResultIsBOOL(AddressBook.ABGroup.addSubgroup_)
        self.assertResultIsBOOL(AddressBook.ABGroup.removeSubgroup_)
        self.assertResultIsBOOL(AddressBook.ABGroup.setDistributionIdentifier_forProperty_person_)

if __name__ == "__main__":
    main()