def test_can_use_unicode(self):
     plain = '☃'
     obf = utils.obfuscate(plain.encode())
     self.assertEqual(plain, utils.deobfuscate(obf))
Exemple #2
0
 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))
Exemple #4
0
 def test_deobfuscation_reverses_obfuscation(self):
     plain = "my_test_string"
     obf = utils.obfuscate(plain)
     self.assertEqual(plain, utils.deobfuscate(obf))