Example #1
0
def test_parse_parameters_deprecated_xy_of_lower_left():
    with pytest.deprecated_call():
        args, kwds = RasterModelGrid._parse_parameters([(3, 4)],
                                                       {"origin": (1.0, 2.0)})
    assert args == ((3, 4), )
    assert kwds == {"xy_of_lower_left": (1.0, 2.0)}
Example #2
0
def test_parse_parameters_new_style(kwds):
    args, new_kwds = RasterModelGrid._parse_parameters([(3, 4)], kwds)
    assert args == ((3, 4), )
    assert new_kwds == kwds
Example #3
0
def test_parse_parameters_deprecated_spacing(params):
    with pytest.deprecated_call():
        args, kwds = RasterModelGrid._parse_parameters(*params)
    assert args == ((3, 4), )
    assert kwds == {"xy_spacing": 20.0}