def test_no_ratio(self, m): with self.assertRaises(ThumbVideoError): get_video_thumb('foo')
def get_file_thumb(file): if get_file_mime(file) == 'video': return get_video_thumb(file)
def test_video_thumb(self, m1, m2, m3): get_video_thumb('foo')