aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_x509.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-30 20:19:00 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-30 20:19:00 -0600
commit58ddc11036bbbb3c558015f9a5c8ea201fa609ec (patch)
tree4c6cee146e21b1d95640bb05573fb975ff001e99 /tests/test_x509.py
parent7640889dbbc379fe1f164cbd3094b2189aa655ba (diff)
downloadcryptography-58ddc11036bbbb3c558015f9a5c8ea201fa609ec.tar.gz
cryptography-58ddc11036bbbb3c558015f9a5c8ea201fa609ec.tar.bz2
cryptography-58ddc11036bbbb3c558015f9a5c8ea201fa609ec.zip
support unrecognized extensions in x509
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r--tests/test_x509.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py
index 578015ec..6145edb1 100644
--- a/tests/test_x509.py
+++ b/tests/test_x509.py
@@ -1093,7 +1093,11 @@ class TestRSACertificateRequest(object):
backend
)
extensions = request.extensions
- assert len(extensions) == 0
+ assert len(extensions) == 1
+ assert extensions[0].oid == x509.ObjectIdentifier("1.2.3.4")
+ assert extensions[0].value == x509.UnrecognizedExtension(
+ x509.ObjectIdentifier("1.2.3.4"), b"value"
+ )
def test_request_basic_constraints(self, backend):
request = _load_cert(