def METHOD_NAME(self, caplog: pytest.LogCaptureFixture, cache: Mock, latest: Mock):
    assert not check_version(True)
    assert latest.call_args_list == [call()]
    assert cache.set.call_args_list == [
        call("latest_version", "1.2.3", 86400),
        call("version_info_printed", True, 21600),
    ]
    assert [(record.levelname, str(record.message)) for record in caplog.records] == [
        ("info", "A new version of Streamlink (1.2.3) is available!"),
    ]