예제 #1
0
파일: tests.py 프로젝트: viromehunter/yabi
 def test_encrypt(self):
     for plaintext, encrypted in CryptoTest.TEST_PAIRS:
         self.assertEqual(
             encrypt_to_annotated_block(plaintext,
                                        CryptoTest.TEST_KEY,
                                        nonce=CryptoTest.TEST_NONCE),
             encrypted)
예제 #2
0
파일: tests.py 프로젝트: viromehunter/yabi
 def test_encrypt_empty_string(self):
     self.assertEqual(encrypt_to_annotated_block("", CryptoTest.TEST_PAIRS),
                      "")
예제 #3
0
파일: tests.py 프로젝트: muccg/yabi
 def test_encrypt_empty_string(self):
     self.assertEqual(encrypt_to_annotated_block("", CryptoTest.TEST_PAIRS), "")
예제 #4
0
파일: tests.py 프로젝트: muccg/yabi
 def test_encrypt(self):
     for plaintext, encrypted in CryptoTest.TEST_PAIRS:
         self.assertEqual(encrypt_to_annotated_block(plaintext, CryptoTest.TEST_KEY, nonce=CryptoTest.TEST_NONCE), encrypted)