Source

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

Full commit

from PyObjCTools.TestSupport import *
from WebKit import *

try:
    unicode
except NameError:
    unicode = str

class TestDOMEventException (TestCase):
    def testConstants(self):
        self.assertIsInstance(DOMEventException, unicode)
        self.assertEqual(DOM_UNSPECIFIED_EVENT_TYPE_ERR, 0)

if __name__ == "__main__":
    main()