aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_x509.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-06-28 11:07:52 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-06-28 11:07:52 -0400
commitac7f70a1dc284339238fcfbdfba4f76476ab3d29 (patch)
tree80d59b3044d85c73c68c8226ffc5baddab514960 /tests/test_x509.py
parent6eeb877becb90f1a8209a8ac4db96e9b440265a6 (diff)
downloadcryptography-ac7f70a1dc284339238fcfbdfba4f76476ab3d29.tar.gz
cryptography-ac7f70a1dc284339238fcfbdfba4f76476ab3d29.tar.bz2
cryptography-ac7f70a1dc284339238fcfbdfba4f76476ab3d29.zip
fix the not implemeneted test
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r--tests/test_x509.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py
index 64a59237..133f0535 100644
--- a/tests/test_x509.py
+++ b/tests/test_x509.py
@@ -864,7 +864,17 @@ class TestCertificateSigningRequestBuilder(object):
x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'),
])
).add_extension(
- x509.SubjectAlternativeName([x509.DNSName(u"cryptography.io")]),
+ x509.KeyUsage(
+ digital_signature=True,
+ content_commitment=True,
+ key_encipherment=False,
+ data_encipherment=False,
+ key_agreement=False,
+ key_cert_sign=True,
+ crl_sign=False,
+ encipher_only=False,
+ decipher_only=False
+ ),
critical=False,
)
with pytest.raises(NotImplementedError):