aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-16 14:30:59 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-16 14:30:59 -0700
commitfb39b3ffc6fcd3df0f89cd3978796a4377335075 (patch)
treefa51b1c07b09beee84f8e8d5d6e87c940f1d1d22 /tests
parent512dd6925202c5dc6680dd7157a132a9ffc4855f (diff)
downloadcryptography-fb39b3ffc6fcd3df0f89cd3978796a4377335075.tar.gz
cryptography-fb39b3ffc6fcd3df0f89cd3978796a4377335075.tar.bz2
cryptography-fb39b3ffc6fcd3df0f89cd3978796a4377335075.zip
Rewrite to avoid capitalization issues
Diffstat (limited to 'tests')
-rw-r--r--tests/primitives/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/primitives/utils.py b/tests/primitives/utils.py
index e4cb8da7..3cf08c28 100644
--- a/tests/primitives/utils.py
+++ b/tests/primitives/utils.py
@@ -39,4 +39,4 @@ def encrypt_test(api, cipher_factory, mode_factory, params, only_if,
)
actual_ciphertext = cipher.encrypt(binascii.unhexlify(plaintext))
actual_ciphertext += cipher.finalize()
- assert binascii.hexlify(actual_ciphertext) == ciphertext
+ assert actual_ciphertext == binascii.unhexlify(ciphertext)