Example #1
0
 def test_be_garbage_at_end(self):
     self.assertEqual(
         PolyglotLevel(suspicious_chunks=[(0x41FEC, 0x343)]),
         tiff.check('tests/samples/tiff/garbage_at_end-be.tiff'))
Example #2
0
 def test_le_regular_file(self):
     self.assertEqual(PolyglotLevel(),
                      tiff.check('tests/samples/tiff/regular-le.tiff'))
Example #3
0
 def test_not_tiff(self):
     self.assertIsNone(tiff.check('tests/samples/zip/regular.zip'))