Commit 28350d61 authored by poljar's avatar poljar

tests: Use Unicode literals in the Unicode decoding tests.

This is needed because the function returns Unicode strings and the
comparison will fail under python2 unless Unicode literals are used.
parent c4d703ac
......@@ -125,7 +125,7 @@ class TestClass(object):
plaintext, _ = inbound.decrypt(text)
print(plaintext)
assert plaintext == "�"
assert plaintext == u"�"
plaintext, _ = inbound.decrypt(text, "ignore")
assert plaintext == ""
......@@ -64,4 +64,4 @@ class TestClass(object):
encryption = PkEncryption(decryption.public_key)
message = encryption.encrypt(bytes([0xed]))
plaintext = decryption.decrypt(message)
assert plaintext == "�"
assert plaintext == u"�"
......@@ -151,4 +151,4 @@ class TestClass(object):
bob_session = InboundSession(bob, message)
plaintext = bob_session.decrypt(message)
assert plaintext == "�"
assert plaintext == u"�"
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