diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-09-09 13:23:35 +0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-09-09 00:23:35 -0500 |
commit | 73114b39c1afe6061cc45acf02d185934ae08b04 (patch) | |
tree | 30903c144be9d1a8d36eb7f1364b9d91880bcddd /tests/hazmat/backends/test_openssl.py | |
parent | f7c77712d6611dc72cb2ef6fb1fe72fee4ab88de (diff) | |
download | cryptography-73114b39c1afe6061cc45acf02d185934ae08b04.tar.gz cryptography-73114b39c1afe6061cc45acf02d185934ae08b04.tar.bz2 cryptography-73114b39c1afe6061cc45acf02d185934ae08b04.zip |
fix coverage, small cleanups in tests (#4990)
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 8e765dd4..44fd3db4 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -453,6 +453,16 @@ class TestOpenSSLSignX509Certificate(object): ) +class TestOpenSSLSignX509CSR(object): + def test_requires_csr_builder(self): + private_key = RSA_KEY_2048.private_key(backend) + + with pytest.raises(TypeError): + backend.create_x509_csr( + object(), private_key, DummyHashAlgorithm() + ) + + class TestOpenSSLSignX509CertificateRevocationList(object): def test_invalid_builder(self): private_key = RSA_KEY_2048.private_key(backend) |