aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-06-21 10:50:53 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2015-06-24 13:35:50 -0500
commit34853f362f19bab9212824a1235a2c30f84234a3 (patch)
tree8b436ea7ed17bdf47ac727ed8d2a6677dd554301 /tests
parentf06b6be82300d9339bcfb062aedd7d7a3865aec9 (diff)
downloadcryptography-34853f362f19bab9212824a1235a2c30f84234a3.tar.gz
cryptography-34853f362f19bab9212824a1235a2c30f84234a3.tar.bz2
cryptography-34853f362f19bab9212824a1235a2c30f84234a3.zip
Simplify test for unsupported extensions
Diffstat (limited to 'tests')
-rw-r--r--tests/test_x509.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py
index 78def5f8..7ce48688 100644
--- a/tests/test_x509.py
+++ b/tests/test_x509.py
@@ -775,15 +775,7 @@ class TestCertificateSigningRequestBuilder(object):
builder.subject_name('NotAName')
def test_add_unsupported_extension(self, backend):
- builder = x509.CertificateSigningRequestBuilder().subject_name(
- x509.Name([
- x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'),
- x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, u'Texas'),
- x509.NameAttribute(x509.OID_LOCALITY_NAME, u'Austin'),
- x509.NameAttribute(x509.OID_ORGANIZATION_NAME, u'PyCA'),
- x509.NameAttribute(x509.OID_COMMON_NAME, u'cryptography.io'),
- ])
- )
+ builder = x509.CertificateSigningRequestBuilder()
with pytest.raises(NotImplementedError):
builder.add_extension(
x509.AuthorityKeyIdentifier('keyid', None, None),