Source

pyobjc / pyobjc-framework-WebKit / PyObjCTest / test_webpolicydelegate.py


from PyObjCTools.TestSupport import *
from WebKit import *

try:
    unicode
except NameError:
    unicode = str

class TestWebPolicyDelegate (TestCase):
    def testConstants(self):
        self.assertIsInstance(WebActionNavigationTypeKey, unicode)
        self.assertIsInstance(WebActionElementKey, unicode)
        self.assertIsInstance(WebActionButtonKey, unicode)
        self.assertIsInstance(WebActionModifierFlagsKey, unicode)
        self.assertIsInstance(WebActionOriginalURLKey, unicode)


if __name__ == "__main__":
    main()