Exemplo n.º 1
0
def test_no_wellformed():
    """Test scraper without well-formed check."""
    scraper = FFMpegWellformed('tests/data/video_mpeg/valid_1.m1v',
                               'video/mpeg', False)
    scraper.scrape_file()
    assert 'Skipping scraper' in scraper.messages()
    assert scraper.well_formed is None
Exemplo n.º 2
0
def test_ffmpeg_scraper_mov(filename, result_dict, mimetype, evaluate_scraper):
    """Test FFMpegWellformed."""
    correct = parse_results(filename, mimetype, result_dict, True)
    scraper = FFMpegWellformed(correct.filename, mimetype, True)
    scraper.scrape_file()
    correct.version = None
    correct.streams[0]['version'] = None
    correct.streams[0]['stream_type'] = None

    evaluate_scraper(scraper, correct)