diff --git a/tests/test_utils.py b/tests/test_utils.py index 1000fc0efcd5a6dd7bbec9f4975dfe8d1e0c9f6f..77294cb724f0d25e4d11eff3c3be9ac5146d7cba 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -23,7 +23,6 @@ import datetime import io import cryptography.x509 -import cryptography.hazmat.backends import gimmecert.crypto import gimmecert.utils @@ -40,8 +39,7 @@ def test_certificate_to_pem_returns_valid_pem(): certificate_pem = gimmecert.utils.certificate_to_pem(certificate) assert isinstance(certificate_pem, str) - certificate_from_pem = cryptography.x509.load_pem_x509_certificate(bytes(certificate_pem, encoding='UTF-8'), - cryptography.hazmat.backends.default_backend()) # Should not throw + certificate_from_pem = cryptography.x509.load_pem_x509_certificate(bytes(certificate_pem, encoding='UTF-8')) # Should not throw assert certificate_from_pem.subject == certificate.subject assert certificate_from_pem.issuer == certificate.issuer