Source

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

Full commit

from PyObjCTools.TestSupport import *
from WebKit import *

try:
    unicode
except NameError:
    unicode = str

class TestDOMRangeException (TestCase):
    def testConstants(self):
        self.assertIsInstance(DOMRangeException, unicode)
        self.assertEqual(DOM_BAD_BOUNDARYPOINTS_ERR, 1)
        self.assertEqual(DOM_INVALID_NODE_TYPE_ERR, 2)

if __name__ == "__main__":
    main()