def test_can_use_unicode(self): plain = '☃' obf = utils.obfuscate(plain.encode()) self.assertEqual(plain, utils.deobfuscate(obf))
def test_can_use_unicode(self): plain = '☃' obf = utils.obfuscate(plain) self.assertEqual(plain, utils.deobfuscate(obf))
def test_deobfuscation_reverses_obfuscation(self): plain = "my_test_string" obf = utils.obfuscate(plain.encode()) self.assertEqual(plain, utils.deobfuscate(obf))
def test_deobfuscation_reverses_obfuscation(self): plain = "my_test_string" obf = utils.obfuscate(plain) self.assertEqual(plain, utils.deobfuscate(obf))