Ejemplo n.º 1
0
 def test_not_looks_like_annotated_block(self):
     for plaintext, _ in CryptoTest.TEST_PAIRS:
         self.assertFalse(looks_like_annotated_block(plaintext))
Ejemplo n.º 2
0
 def test_not_looks_like_annotated_block_empty_string(self):
     self.assertFalse(looks_like_annotated_block(""))
Ejemplo n.º 3
0
 def test_looks_like_annotated_block(self):
     for _, encrypted in CryptoTest.TEST_PAIRS:
         self.assertTrue(looks_like_annotated_block(encrypted))
Ejemplo n.º 4
0
Archivo: tests.py Proyecto: muccg/yabi
 def test_not_looks_like_annotated_block(self):
     for plaintext, _ in CryptoTest.TEST_PAIRS:
         self.assertFalse(looks_like_annotated_block(plaintext))
Ejemplo n.º 5
0
Archivo: tests.py Proyecto: muccg/yabi
 def test_not_looks_like_annotated_block_empty_string(self):
     self.assertFalse(looks_like_annotated_block(""))
Ejemplo n.º 6
0
Archivo: tests.py Proyecto: muccg/yabi
 def test_looks_like_annotated_block(self):
     for _, encrypted in CryptoTest.TEST_PAIRS:
         self.assertTrue(looks_like_annotated_block(encrypted))