Source

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


from PyObjCTools.TestSupport import *
from WebKit import *

try:
    unicode
except NameError:
    unicode = str

class TestDOMXPathException (TestCase):
    def testConstants(self):
        self.assertIsInstance(DOMXPathException, unicode)

        self.assertEqual(DOM_INVALID_EXPRESSION_ERR, 51)
        self.assertEqual(DOM_TYPE_ERR, 52)


if __name__ == "__main__":
    main()