From 824155743fe3087bb2b2116ad3a8a363f550f9ab Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Tue, 18 Dec 2018 01:26:40 +0200 Subject: 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 --- tests/x509/test_x509.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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) == ( - ", ...)>" ) @@ -4113,7 +4113,7 @@ class TestName(object): x509.NameAttribute(NameOID.ORGANIZATION_NAME, u'PyCA'), ]) - assert repr(name) == "" + assert repr(name) == "" 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): -- cgit v1.2.3