def METHOD_NAME(mock_tools, tmp_path):
    """If the download doesn't complete, the validator fails."""
    # Mock the environment as if there is not WiX variable
    mock_tools.os.environ.get.return_value = None
    # Mock the download failure
    mock_tools.download.file.side_effect = NetworkFailure("mock")
    # Verify the install. This will trigger a download
    with pytest.raises(NetworkFailure, match="Unable to mock"):
        WiX.verify(mock_tools)
    # The environment was queried.
    mock_tools.os.environ.get.assert_called_with("WIX")
    # A download was initiated
    mock_tools.download.file.assert_called_with(
        url=WIX_DOWNLOAD_URL,
        download_path=tmp_path / "tools",
        role="WiX",
    )
    # ... but the unpack didn't happen
    assert mock_tools.shutil.unpack_archive.call_count == 0