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-12 18:54:12 -0800 |
commit | 22e81726fe1a38b3100361f2e8dd120c89c512e3 (patch) | |
tree | 2a857aef6fbbce9bc614550a1a5cde87448d9f1c /tests | |
parent | 1ebcd1c82a24502f51a1c14e6536928c65ae5406 (diff) | |
download | cryptography-22e81726fe1a38b3100361f2e8dd120c89c512e3.tar.gz cryptography-22e81726fe1a38b3100361f2e8dd120c89c512e3.tar.bz2 cryptography-22e81726fe1a38b3100361f2e8dd120c89c512e3.zip |
Add test for arbitrary access_method
Diffstat (limited to 'tests')
-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 8cbce10b..565cf571 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -1858,6 +1858,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, |