def test_downscaling_interface():
    """Test the downscaling module interface."""

    from pysteps.downscaling import rainfarm

    method_getter = pysteps.downscaling.interface.get_method

    valid_names_func_pair = [
        ("rainfarm", rainfarm.downscale),
    ]

    invalid_names = ["rain-farm", "rainfarms"]
    _generic_interface_test(method_getter, valid_names_func_pair, invalid_names)
Test the downscaling module interface.
pysteps/tests/test_interfaces.py