From 0ed56bbe1ad21e8d9d88a430ffa8c95ec856fe08 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 18 Oct 2018 17:53:16 -0400 Subject: [PATCH] tests --- tests/unit/core/test_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/core/test_utils.py b/tests/unit/core/test_utils.py index 3ca5817b2..208b45ad3 100644 --- a/tests/unit/core/test_utils.py +++ b/tests/unit/core/test_utils.py @@ -23,13 +23,13 @@ class CompareVersionTest(unittest.TestCase): class ObfuscationTest(unittest.TestCase): def test_deobfuscation_reverses_obfuscation(self): - plain = "my_test_string".encode() - obf = utils.obfuscate(plain) + plain = "my_test_string" + obf = utils.obfuscate(plain.encode()) self.assertEqual(plain, utils.deobfuscate(obf)) def test_can_use_unicode(self): - plain = '☃'.encode() - obf = utils.obfuscate(plain) + plain = '☃' + obf = utils.obfuscate(plain.encode()) self.assertEqual(plain, utils.deobfuscate(obf))