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)
def test_encrypt_empty_string(self): self.assertEqual(encrypt_to_annotated_block("", CryptoTest.TEST_PAIRS), "")
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)