diff options
author | Andre Caron <andre.l.caron@gmail.com> | 2015-06-06 20:18:44 -0400 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-06-24 13:35:49 -0500 |
commit | a9a5117f9aae4f0aa3e2e1bd3dcd6a93867c67a4 (patch) | |
tree | 0dd0e8d51b43f03e1042c73328d6d51aed57be81 /tests/test_x509.py | |
parent | 24f9bf4ba52c64f10ea6895a7e37dd0b4761b589 (diff) | |
download | cryptography-a9a5117f9aae4f0aa3e2e1bd3dcd6a93867c67a4.tar.gz cryptography-a9a5117f9aae4f0aa3e2e1bd3dcd6a93867c67a4.tar.bz2 cryptography-a9a5117f9aae4f0aa3e2e1bd3dcd6a93867c67a4.zip |
Removes set_ prefix on CSR builder method.
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r-- | tests/test_x509.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py index 663b83b2..150eb6fc 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -699,7 +699,7 @@ class TestCertificateSigningRequestBuilder(object): backend=backend, ) - request = x509.CertificateSigningRequestBuilder().set_subject_name( + request = x509.CertificateSigningRequestBuilder().subject_name( x509.Name([ x509.NameAttribute(x509.OID_COUNTRY_NAME, 'US'), x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, 'Texas'), @@ -738,7 +738,7 @@ class TestCertificateSigningRequestBuilder(object): backend=backend, ) - request = x509.CertificateSigningRequestBuilder().set_subject_name( + request = x509.CertificateSigningRequestBuilder().subject_name( x509.Name([ x509.NameAttribute(x509.OID_COUNTRY_NAME, 'US'), x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, 'Texas'), @@ -782,7 +782,7 @@ class TestCertificateSigningRequestBuilder(object): def test_set_invalid_subject(self, backend): builder = x509.CertificateSigningRequestBuilder() with pytest.raises(TypeError): - builder.set_subject_name('NotAName') + builder.subject_name('NotAName') def test_add_unsupported_extension(self, backend): private_key = rsa.generate_private_key( @@ -790,7 +790,7 @@ class TestCertificateSigningRequestBuilder(object): key_size=2048, backend=backend, ) - builder = x509.CertificateSigningRequestBuilder().set_subject_name( + 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'), |