def test_cs_encrypt_telegraph_circuit(self): text = random_str(500) self.assertEqual( text, CSCrypto().decrypt_telegraph(CSCrypto().encrypt_telegraph(text)), "'cs_decrypt_telegraph' not reverses 'cs_encrypt_telegraph'")
def test_cs_decrypt_telegraph(self): telegraph = random_str(500) self.assertEqual( telegraph, CSCrypto().decrypt_telegraph(encrypt_telegraph(telegraph)), "'cs_decrypt_telegraph' not reverses 'encrypt_telegraph'")
def test_cs_encrypt_circuit(self): text = random_str(10) self.assertEqual(text, CSCrypto().decrypt(CSCrypto().encrypt(text)), "'cs_decrypt' not reverses 'cs_encrypt'")
def test_cs_decrypt(self): secret = random_str(10) self.assertEqual(secret, CSCrypto().decrypt(encrypt(secret)), "'cs_decrypt' not reverses 'encrypt'")