diff options
author | Nick Bastin <nick.bastin@gmail.com> | 2015-12-12 19:08:12 -0800 |
---|---|---|
committer | Nick Bastin <nick.bastin@gmail.com> | 2015-12-12 19:08:12 -0800 |
commit | b19ec5119db2e2549d7062717a0e10b66c91714a (patch) | |
tree | 4fdf20ca81d8d26467e58cc647daedb67f9abf82 /tests/test_x509_ext.py | |
parent | 22e81726fe1a38b3100361f2e8dd120c89c512e3 (diff) | |
download | cryptography-b19ec5119db2e2549d7062717a0e10b66c91714a.tar.gz cryptography-b19ec5119db2e2549d7062717a0e10b66c91714a.tar.bz2 cryptography-b19ec5119db2e2549d7062717a0e10b66c91714a.zip |
Style cleanup, missing import
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r-- | tests/test_x509_ext.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index 565cf571..fbd8b882 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -18,7 +18,8 @@ from cryptography.hazmat.backends.interfaces import ( ) from cryptography.hazmat.primitives.asymmetric import ec from cryptography.x509.oid import ( - AuthorityInformationAccessOID, ExtendedKeyUsageOID, ExtensionOID, NameOID + AuthorityInformationAccessOID, ExtendedKeyUsageOID, ExtensionOID, + NameOID, ObjectIdentifier ) from .hazmat.primitives.test_ec import _skip_curve_unsupported @@ -1859,7 +1860,10 @@ class TestAccessDescription(object): ) def test_valid_nonstandard_method (self): - ad = x509.AccessDescription("2.999.1", x509.UniformResourceIdentifier(u"http://example.com")) + ad = x509.AccessDescription( + ObjectIdentifier("2.999.1"), + x509.UniformResourceIdentifier(u"http://example.com") + ) assert ad is not None def test_repr(self): |