1# 2# This file is part of pyasn1-modules software. 3# 4# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> 5# License: http://snmplabs.com/pyasn1/license.html 6# 7try: 8 import unittest2 as unittest 9 10except ImportError: 11 import unittest 12 13suite = unittest.TestLoader().loadTestsFromNames( 14 ['tests.test_pem.suite', 15 'tests.test_rfc2314.suite', 16 'tests.test_rfc2315.suite', 17 'tests.test_rfc2437.suite', 18 'tests.test_rfc2459.suite', 19 'tests.test_rfc2511.suite', 20 'tests.test_rfc2560.suite', 21 'tests.test_rfc2631.suite', 22 'tests.test_rfc2634.suite', 23 'tests.test_rfc2985.suite', 24 'tests.test_rfc2986.suite', 25 'tests.test_rfc3114.suite', 26 'tests.test_rfc3161.suite', 27 'tests.test_rfc3274.suite', 28 'tests.test_rfc3279.suite', 29 'tests.test_rfc3280.suite', 30 'tests.test_rfc3281.suite', 31 'tests.test_rfc3447.suite', 32 'tests.test_rfc3560.suite', 33 'tests.test_rfc3565.suite', 34 'tests.test_rfc3709.suite', 35 'tests.test_rfc3770.suite', 36 'tests.test_rfc3779.suite', 37 'tests.test_rfc3852.suite', 38 'tests.test_rfc4043.suite', 39 'tests.test_rfc4055.suite', 40 'tests.test_rfc4073.suite', 41 'tests.test_rfc4108.suite', 42 'tests.test_rfc4210.suite', 43 'tests.test_rfc4211.suite', 44 'tests.test_rfc4334.suite', 45 'tests.test_rfc4985.suite', 46 'tests.test_rfc5035.suite', 47 'tests.test_rfc5083.suite', 48 'tests.test_rfc5084.suite', 49 'tests.test_rfc5208.suite', 50 'tests.test_rfc5280.suite', 51 'tests.test_rfc5480.suite', 52 'tests.test_rfc5649.suite', 53 'tests.test_rfc5652.suite', 54 'tests.test_rfc5751.suite', 55 'tests.test_rfc5755.suite', 56 'tests.test_rfc5913.suite', 57 'tests.test_rfc5914.suite', 58 'tests.test_rfc5915.suite', 59 'tests.test_rfc5916.suite', 60 'tests.test_rfc5917.suite', 61 'tests.test_rfc5924.suite', 62 'tests.test_rfc5934.suite', 63 'tests.test_rfc5940.suite', 64 'tests.test_rfc5958.suite', 65 'tests.test_rfc5990.suite', 66 'tests.test_rfc6010.suite', 67 'tests.test_rfc6019.suite', 68 'tests.test_rfc6031.suite', 69 'tests.test_rfc6032.suite', 70 'tests.test_rfc6120.suite', 71 'tests.test_rfc6187.suite', 72 'tests.test_rfc6210.suite', 73 'tests.test_rfc6211.suite', 74 'tests.test_rfc6482.suite', 75 'tests.test_rfc6486.suite', 76 'tests.test_rfc6487.suite', 77 'tests.test_rfc6664.suite', 78 'tests.test_rfc6955.suite', 79 'tests.test_rfc6960.suite', 80 'tests.test_rfc7030.suite', 81 'tests.test_rfc7191.suite', 82 'tests.test_rfc7229.suite', 83 'tests.test_rfc7292.suite', 84 'tests.test_rfc7296.suite', 85 'tests.test_rfc7508.suite', 86 'tests.test_rfc7585.suite', 87 'tests.test_rfc7633.suite', 88 'tests.test_rfc7773.suite', 89 'tests.test_rfc7894.suite', 90 'tests.test_rfc7906.suite', 91 'tests.test_rfc7914.suite', 92 'tests.test_rfc8017.suite', 93 'tests.test_rfc8018.suite', 94 'tests.test_rfc8103.suite', 95 'tests.test_rfc8209.suite', 96 'tests.test_rfc8226.suite', 97 'tests.test_rfc8358.suite', 98 'tests.test_rfc8360.suite', 99 'tests.test_rfc8398.suite', 100 'tests.test_rfc8410.suite', 101 'tests.test_rfc8418.suite', 102 'tests.test_rfc8419.suite', 103 'tests.test_rfc8479.suite', 104 'tests.test_rfc8494.suite', 105 'tests.test_rfc8520.suite', 106 'tests.test_rfc8619.suite', 107 'tests.test_rfc8649.suite'] 108) 109 110 111if __name__ == '__main__': 112 import sys 113 114 result = unittest.TextTestRunner(verbosity=2).run(suite) 115 sys.exit(not result.wasSuccessful()) 116