def METHOD_NAME(test_cube):
    """Test if no location supplied."""
    msg = "Location needs to be specified."
    with pytest.raises(ValueError, match=msg):
        extract_location(test_cube, scheme='nearest', location=None)