aboutsummaryrefslogtreecommitdiffstats
path: root/tests/x509
diff options
context:
space:
mode:
authorMarti Raudsepp <marti@juffo.org>2018-12-18 01:26:40 +0200
committerPaul Kehrer <paul.l.kehrer@gmail.com>2018-12-18 07:26:40 +0800
commit824155743fe3087bb2b2116ad3a8a363f550f9ab (patch)
tree67eb672c872e824525ed77b05e79806bf27c240a /tests/x509
parent89e1e34d977e565171329c26de6ce9c8f12340e7 (diff)
downloadcryptography-824155743fe3087bb2b2116ad3a8a363f550f9ab.tar.gz
cryptography-824155743fe3087bb2b2116ad3a8a363f550f9ab.tar.bz2
cryptography-824155743fe3087bb2b2116ad3a8a363f550f9ab.zip
Remove spaces from RFC 4514 strings for better compliance (#4643) (#4646)
RFC 4514 does not explicitly allow whitespace between separators: https://tools.ietf.org/html/rfc4514 Reported-by: David Arnold <dar@xoe.solutions>
Diffstat (limited to 'tests/x509')
-rw-r--r--tests/x509/test_x509.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/x509/test_x509.py b/tests/x509/test_x509.py
index f4520811..1d483ac2 100644
--- a/tests/x509/test_x509.py
+++ b/tests/x509/test_x509.py
@@ -1139,8 +1139,8 @@ class TestRSACertificate(object):
backend
)
assert repr(cert) == (
- "<Certificate(subject=<Name(OU=GT48742965, OU=See www.rapidssl.com"
- "/resources/cps (c)14, OU=Domain Control Validated - RapidSSL(R), "
+ "<Certificate(subject=<Name(OU=GT48742965,OU=See www.rapidssl.com"
+ "/resources/cps (c)14,OU=Domain Control Validated - RapidSSL(R),"
"CN=www.cryptography.io)>, ...)>"
)
@@ -4113,7 +4113,7 @@ class TestName(object):
x509.NameAttribute(NameOID.ORGANIZATION_NAME, u'PyCA'),
])
- assert repr(name) == "<Name(CN=cryptography.io, O=PyCA)>"
+ assert repr(name) == "<Name(CN=cryptography.io,O=PyCA)>"
def test_rfc4514_string(self):
n = x509.Name([
@@ -4129,7 +4129,7 @@ class TestName(object):
]),
])
assert (n.rfc4514_string() ==
- 'OU=Sales+CN=J. Smith, DC=example, DC=net')
+ 'OU=Sales+CN=J. Smith,DC=example,DC=net')
def test_not_nameattribute(self):
with pytest.raises(TypeError):