aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-08-08 22:14:42 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-08-08 22:51:35 -0500
commit08f950e7ab86da8687b5ad7a12153e766284a76a (patch)
tree7adc5db0102cfbf22ee7066ea1e2be8564ea5021 /tests
parentba62a0ba66cdf7476dd741a0bf0f08cab518524c (diff)
downloadcryptography-08f950e7ab86da8687b5ad7a12153e766284a76a.tar.gz
cryptography-08f950e7ab86da8687b5ad7a12153e766284a76a.tar.bz2
cryptography-08f950e7ab86da8687b5ad7a12153e766284a76a.zip
remove a lot of if/elif chains in the certificate builder
Diffstat (limited to 'tests')
-rw-r--r--tests/test_x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py
index b630e337..e0f8d574 100644
--- a/tests/test_x509.py
+++ b/tests/test_x509.py
@@ -1064,10 +1064,10 @@ class TestCertificateBuilder(object):
x509.BasicConstraints(ca=False, path_length=None), True,
)
- def test_add_unsupported_extension(self):
+ def test_add_invalid_extension_type(self):
builder = x509.CertificateBuilder()
- with pytest.raises(NotImplementedError):
+ with pytest.raises(TypeError):
builder.add_extension(object(), False)
@pytest.mark.requires_backend_interface(interface=RSABackend)