コード例 #1
0
ファイル: test_crypt.py プロジェクト: kkaehler/ndkale
 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()]
コード例 #2
0
ファイル: test_crypt.py プロジェクト: teeparham/ndkale
 def text_hex_decrypt(self):
     for msg in self.msgs:
         crypted_msg = crypt.hex_encrypt(msg)
         self.assertEqual(msg, crypt.hex_decrypt(crypted_msg))
コード例 #3
0
ファイル: test_crypt.py プロジェクト: Kaleva/ndkale
 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))