aboutsummaryrefslogtreecommitdiffstats
path: root/tests/x509/test_x509_revokedcertbuilder.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2019-01-22 06:59:06 -0600
committerAlex Gaynor <alex.gaynor@gmail.com>2019-01-22 07:59:06 -0500
commit2e9c7df922edbc59981a2c0fdb6ea4f15fdd8afc (patch)
treeb37d095c076db48ab3e7cf4e68a4f6894a30b6d6 /tests/x509/test_x509_revokedcertbuilder.py
parent767fa8511caade795457b23ea9d3d85af1ed12bb (diff)
downloadcryptography-2e9c7df922edbc59981a2c0fdb6ea4f15fdd8afc.tar.gz
cryptography-2e9c7df922edbc59981a2c0fdb6ea4f15fdd8afc.tar.bz2
cryptography-2e9c7df922edbc59981a2c0fdb6ea4f15fdd8afc.zip
allow asn1 times of 1950-01-01 and later. (#4728)
* allow asn1 times of 1950-01-01 and later. * add a test * pretty up the test
Diffstat (limited to 'tests/x509/test_x509_revokedcertbuilder.py')
-rw-r--r--tests/x509/test_x509_revokedcertbuilder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/x509/test_x509_revokedcertbuilder.py b/tests/x509/test_x509_revokedcertbuilder.py
index e3a06509..75c6b269 100644
--- a/tests/x509/test_x509_revokedcertbuilder.py
+++ b/tests/x509/test_x509_revokedcertbuilder.py
@@ -80,10 +80,10 @@ class TestRevokedCertificateBuilder(object):
with pytest.raises(TypeError):
x509.RevokedCertificateBuilder().revocation_date("notadatetime")
- def test_revocation_date_before_unix_epoch(self):
+ def test_revocation_date_before_1950(self):
with pytest.raises(ValueError):
x509.RevokedCertificateBuilder().revocation_date(
- datetime.datetime(1960, 8, 10)
+ datetime.datetime(1940, 8, 10)
)
def test_set_revocation_date_twice(self):