import unittest
import TestDOM
import TestEntityResolver
import TestErrorHandler
import TestInputTypes
import TestOutputTypes
import TestProblemListener
import TestTraceListener
import TestTopLevelParameters
import TestXPathExtensions
class ModuleAttributesTestCase(unittest.TestCase):
def checkVersion(self):
import Pyana
Pyana.xerces_version
Pyana.xalan_version
testSuites = [unittest.makeSuite(ModuleAttributesTestCase, 'check')]
for i in [
TestDOM,
TestEntityResolver,
TestErrorHandler,
TestInputTypes,
TestOutputTypes,
TestProblemListener,
TestTraceListener,
TestTopLevelParameters,
TestXPathExtensions
]:
testSuites.append(i.getTestSuites('check'))
def getTestDirectory():
try:
return os.path.abspath(os.path.dirname(__file__))
except:
return '.'
import os
os.chdir(getTestDirectory())
runner = unittest.TextTestRunner()
runner.run(unittest.TestSuite(testSuites))
|