Пример #1
0
 def text_hex_decrypt(self):
     for msg in self.msgs:
         crypted_msg = crypt.hex_encrypt(msg)
         self.assertEqual(msg, crypt.hex_decrypt(crypted_msg))
Пример #2
0
 def test_hex_crypt(self):
     [self.assertNotEqual(msg, crypt.hex_encrypt(msg)) for msg in self.msgs]
Пример #3
0
 def test_hex_crypt(self):
     [self.assertNotEqual(msg, crypt.hex_encrypt(
         msg)) for msg in self.TEST_MSGS]
Пример #4
0
 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()]
Пример #5
0
 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))