From 11f0f8a3f8e03ef6831c5d487f1af994b9231ad6 Mon Sep 17 00:00:00 2001 From: Nick Bastin Date: Sat, 12 Dec 2015 18:54:12 -0800 Subject: Add test for arbitrary access_method --- tests/test_x509_ext.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_x509_ext.py') 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, -- cgit v1.2.3