forked from LBRYCommunity/lbry-sdk
tests
This commit is contained in:
parent
213bdac55f
commit
0ed56bbe1a
1 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue