diff options
author | Nick Bastin <nick.bastin@gmail.com> | 2015-12-12 18:54:12 -0800 |
---|---|---|
committer | Nick Bastin <nick.bastin@gmail.com> | 2015-12-20 08:15:56 -0800 |
commit | 11f0f8a3f8e03ef6831c5d487f1af994b9231ad6 (patch) | |
tree | ada9118ae4c9983aa294352f72326cbc6a2b6eb1 | |
parent | d06763d9258115b2e1199296a18d7ec773d47ac3 (diff) | |
download | cryptography-11f0f8a3f8e03ef6831c5d487f1af994b9231ad6.tar.gz cryptography-11f0f8a3f8e03ef6831c5d487f1af994b9231ad6.tar.bz2 cryptography-11f0f8a3f8e03ef6831c5d487f1af994b9231ad6.zip |
Add test for arbitrary access_method
-rw-r--r-- | tests/test_x509_ext.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index 511fad62..de2fb671 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -1871,6 +1871,10 @@ class TestAccessDescription(object): AuthorityInformationAccessOID.CA_ISSUERS, "invalid" ) + def test_valid_nonstandard_method (self): + ad = x509.AccessDescription("2.999.1", x509.UniformResourceIdentifier(u"http://example.com")) + assert ad is not None + def test_repr(self): ad = x509.AccessDescription( AuthorityInformationAccessOID.OCSP, |