def METHOD_NAME(pytestconfig, caplog):
    file = pytestconfig.rootpath.joinpath(test_media_root).joinpath(
        "Donald Knuth - The Complexity of Songs.pdf"
    )
    with file.open("rb") as fp:
        parsed_text, page_count = extract_from_file(fp, file, "application/pdf", 0)
    assert caplog.messages == []
    assert "bottles of beer" in parsed_text
    assert page_count == 3