Example #1
0
 def test_garbage_at_beginning_and_end(self):
     result = avi.check(
         'tests/samples/avi/garbage_at_beginning_and_end.avi')
     self.assertEqual(
         PolyglotLevel(suspicious_chunks=[(0, 0x15), (0x46A05, 0x15)]),
         result)
Example #2
0
 def test_regular_file(self):
     self.assertEqual(PolyglotLevel(),
                      avi.check('tests/samples/avi/regular.avi'))
Example #3
0
 def test_not_avi(self):
     self.assertIsNone(avi.check('tests/samples/zip/regular.zip'))