X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=tests%2Ftest_pyderasn.py;h=5ba9adf75a91928a109d3bf33b01b1a3f21b94a0;hb=90725be7bf59abd3ad67d62d28e9717826e63958;hp=b7ee9a9da9571a1f29b2a8feac0ae9ac9166a11a;hpb=f078d5d2ff1d95ebaac507ec67331547a0cac2a9;p=pyderasn.git diff --git a/tests/test_pyderasn.py b/tests/test_pyderasn.py index b7ee9a9..5ba9adf 100644 --- a/tests/test_pyderasn.py +++ b/tests/test_pyderasn.py @@ -20,6 +20,7 @@ from copy import deepcopy from datetime import datetime from datetime import timedelta from importlib import import_module +from os import environ from random import random from string import ascii_letters from string import digits @@ -126,8 +127,10 @@ from pyderasn import VideotexString from pyderasn import VisibleString +max_examples = environ.get("MAX_EXAMPLES") settings.register_profile("local", settings( deadline=5000, + **({"max_examples": int(max_examples)} if max_examples else {}) )) settings.load_profile("local") LONG_TEST_MAX_EXAMPLES = settings().max_examples * 4 @@ -4305,6 +4308,14 @@ class TestGeneralizedTime(TimeMixin, CommonMixin, TestCase): b"200001020304+5Z", b"20000102030405.+6Z", b"20000102030405.-6Z", + b"_2000102030405Z", + b"2000_102030405Z", + b"200001_2030405Z", + b"20000102_30405Z", + b"2000010203_405Z", + b"200001020304_5Z", + b"20000102030405._6Z", + b"20000102030405.6_Z", b" 2000102030405Z", b"2000 102030405Z", b"200001 2030405Z", @@ -4406,6 +4417,13 @@ class TestUTCTime(TimeMixin, CommonMixin, TestCase): b"000102+30405Z", b"00010203+405Z", b"0001020304+5Z", + b"_10102030405Z", + b"00_102030405Z", + b"0001_2030405Z", + b"000102_30405Z", + b"00010203_405Z", + b"0001020304_5Z", + b"00010203045_Z", b" 10102030405Z", b"00 102030405Z", b"0001 2030405Z",