aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Bastin <nick.bastin@gmail.com>2015-12-12 19:08:12 -0800
committerNick Bastin <nick.bastin@gmail.com>2015-12-20 08:16:32 -0800
commit326fc8eb679099552703accd814692c01514312b (patch)
treee1ad1b0788b4d2fded3678231595c83c3886e0de
parent11f0f8a3f8e03ef6831c5d487f1af994b9231ad6 (diff)
downloadcryptography-326fc8eb679099552703accd814692c01514312b.tar.gz
cryptography-326fc8eb679099552703accd814692c01514312b.tar.bz2
cryptography-326fc8eb679099552703accd814692c01514312b.zip
Style cleanup, missing import
-rw-r--r--tests/test_x509_ext.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py
index de2fb671..ca1b9f45 100644
--- a/tests/test_x509_ext.py
+++ b/tests/test_x509_ext.py
@@ -18,8 +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
@@ -1872,7 +1872,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):