aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_x509_ext.py
diff options
context:
space:
mode:
authorNick Bastin <nick.bastin@gmail.com>2015-12-12 18:32:59 -0800
committerNick Bastin <nick.bastin@gmail.com>2015-12-20 08:15:56 -0800
commitd06763d9258115b2e1199296a18d7ec773d47ac3 (patch)
treee8ccd2edc5a226919c10f2738ef8d53d44ab0624 /tests/test_x509_ext.py
parent4594773bdc8145aa599e18a2119948d061b50b13 (diff)
downloadcryptography-d06763d9258115b2e1199296a18d7ec773d47ac3.tar.gz
cryptography-d06763d9258115b2e1199296a18d7ec773d47ac3.tar.bz2
cryptography-d06763d9258115b2e1199296a18d7ec773d47ac3.zip
Allow any OID for access_method, validate OIDs at creation time, fix tests.
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r--tests/test_x509_ext.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py
index 751de08d..511fad62 100644
--- a/tests/test_x509_ext.py
+++ b/tests/test_x509_ext.py
@@ -1861,7 +1861,8 @@ class TestExtendedKeyUsageExtension(object):
class TestAccessDescription(object):
def test_invalid_access_method(self):
- with pytest.raises(ValueError):
+ # access_method can be *any* valid OID
+ with pytest.raises(TypeError):
x509.AccessDescription("notanoid", x509.DNSName(u"test"))
def test_invalid_access_location(self):