aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_x509_ext.py
diff options
context:
space:
mode:
authorNick Bastin <nick.bastin@gmail.com>2015-12-12 18:54:12 -0800
committerNick Bastin <nick.bastin@gmail.com>2015-12-20 08:15:56 -0800
commit11f0f8a3f8e03ef6831c5d487f1af994b9231ad6 (patch)
treeada9118ae4c9983aa294352f72326cbc6a2b6eb1 /tests/test_x509_ext.py
parentd06763d9258115b2e1199296a18d7ec773d47ac3 (diff)
downloadcryptography-11f0f8a3f8e03ef6831c5d487f1af994b9231ad6.tar.gz
cryptography-11f0f8a3f8e03ef6831c5d487f1af994b9231ad6.tar.bz2
cryptography-11f0f8a3f8e03ef6831c5d487f1af994b9231ad6.zip
Add test for arbitrary access_method
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r--tests/test_x509_ext.py4
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,