Source

pyobjc / pyobjc-framework-InstallerPlugins / PyObjCTest / test_installerstate.py


from PyObjCTools.TestSupport import *
from InstallerPlugins import *

try:
    unicode
except NameError:
    unicode = str

class TestInstallerState (TestCase):
    def testConstants(self):
        self.assertIsInstance(InstallerState_Choice_Identifier, unicode)
        self.assertIsInstance(InstallerState_Choice_Installed, unicode)
        self.assertIsInstance(InstallerState_Choice_CustomLocation, unicode)

    def testMethods(self):
        self.assertResultIsBOOL(InstallerState.licenseAgreed)
        self.assertResultIsBOOL(InstallerState.installStarted)
        self.assertResultIsBOOL(InstallerState.installSucceeded)


if __name__ == "__main__":
    main()