Example #1
0
 def test_not_looks_like_annotated_block(self):
     for plaintext, _ in CryptoTest.TEST_PAIRS:
         self.assertFalse(looks_like_annotated_block(plaintext))
Example #2
0
 def test_not_looks_like_annotated_block_empty_string(self):
     self.assertFalse(looks_like_annotated_block(""))
Example #3
0
 def test_looks_like_annotated_block(self):
     for _, encrypted in CryptoTest.TEST_PAIRS:
         self.assertTrue(looks_like_annotated_block(encrypted))
Example #4
0
File: tests.py Project: muccg/yabi
 def test_not_looks_like_annotated_block(self):
     for plaintext, _ in CryptoTest.TEST_PAIRS:
         self.assertFalse(looks_like_annotated_block(plaintext))
Example #5
0
File: tests.py Project: muccg/yabi
 def test_not_looks_like_annotated_block_empty_string(self):
     self.assertFalse(looks_like_annotated_block(""))
Example #6
0
File: tests.py Project: muccg/yabi
 def test_looks_like_annotated_block(self):
     for _, encrypted in CryptoTest.TEST_PAIRS:
         self.assertTrue(looks_like_annotated_block(encrypted))