1from sys import path, version_info
2from os.path import sep
3path.insert(1, path[0]+sep+'type')
4import type.suite
5path.insert(1, path[0]+sep+'codec')
6import codec.suite
7from pyasn1.error import PyAsn1Error
8if version_info[0:2] < (2, 7) or \
9   version_info[0:2] in ( (3, 0), (3, 1) ):
10    try:
11        import unittest2 as unittest
12    except ImportError:
13        import unittest
14else:
15    import unittest
16
17suite = unittest.TestSuite()
18for m in (
19    type.suite,
20    codec.suite
21    ):
22    suite.addTest(getattr(m, 'suite'))
23
24def runTests(): unittest.TextTestRunner(verbosity=2).run(suite)
25
26if __name__ == '__main__': runTests()
27