def text_hex_decrypt(self): crypted_msgs = {msg: crypt.hex_encrypt(msg) for msg in self.TEST_MSGS} [self.assertEqual(msg, crypt.hex_decrypt( crypted_msg)) for msg, crypted_msg in crypted_msgs.iteritems()]
def text_hex_decrypt(self): for msg in self.msgs: crypted_msg = crypt.hex_encrypt(msg) self.assertEqual(msg, crypt.hex_decrypt(crypted_msg))
def text_hex_decrypt(self): for msg in self.TEST_MSGS: crypted_msg = crypt.hex_encrypt(msg) self.assertEqual(msg, crypt.hex_decrypt(crypted_msg))