From 22e81726fe1a38b3100361f2e8dd120c89c512e3 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 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, -- cgit v1.2.3