Commit ef67dafb authored by Vincent Pelletier's avatar Vincent Pelletier

test: Unicode-ify strings.

parent 23cd89ba
...@@ -881,9 +881,9 @@ class CaucaseTest(unittest.TestCase): ...@@ -881,9 +881,9 @@ class CaucaseTest(unittest.TestCase):
x509.oid.ExtendedKeyUsageOID.CLIENT_AUTH, x509.oid.ExtendedKeyUsageOID.CLIENT_AUTH,
]) ])
requested_alt_name = expected_alt_name = x509.SubjectAlternativeName([ requested_alt_name = expected_alt_name = x509.SubjectAlternativeName([
x509.RFC822Name('nobody@example.com'), x509.RFC822Name(u'nobody@example.com'),
x509.DNSName('example.com'), x509.DNSName(u'example.com'),
x509.UniformResourceIdentifier('https://example.com/a/b/c'), x509.UniformResourceIdentifier(u'https://example.com/a/b/c'),
x509.IPAddress(ipaddress.IPv4Address(u'127.0.0.1')), x509.IPAddress(ipaddress.IPv4Address(u'127.0.0.1')),
x509.IPAddress(ipaddress.IPv6Address(u'::1')), x509.IPAddress(ipaddress.IPv6Address(u'::1')),
x509.IPAddress(ipaddress.IPv4Network(u'127.0.0.0/8')), x509.IPAddress(ipaddress.IPv4Network(u'127.0.0.0/8')),
...@@ -928,7 +928,7 @@ class CaucaseTest(unittest.TestCase): ...@@ -928,7 +928,7 @@ class CaucaseTest(unittest.TestCase):
).add_extension(requested_policies, critical=True, ).add_extension(requested_policies, critical=True,
).add_extension(requested_basic_constraints, critical=True, ).add_extension(requested_basic_constraints, critical=True,
).add_extension( ).add_extension(
x509.NameConstraints([x509.DNSName('com')], None), x509.NameConstraints([x509.DNSName(u'com')], None),
critical=True, critical=True,
), ),
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment