def test_clip_domain(R, metadata, extent, expected):
    """Test the clip_domain."""
    assert_array_equal(dimension.clip_domain(R, metadata, extent)[0], expected)
Test the clip_domain.
pysteps/tests/test_utils_dimension.py