def METHOD_NAME(
    error, mock_config, mock_is_running_from_snap
):
    """An error when initializing the snap config object should return None."""
    mock_config.side_effect = error
    assert get_snap_config() is None