def test_cascade_interface():
    """Test the cascade module interface."""

    from pysteps.cascade import decomposition, bandpass_filters

    method_getter = pysteps.cascade.interface.get_method

    valid_names_func_pair = [
        ("fft", (decomposition.decomposition_fft, decomposition.recompose_fft)),
        ("gaussian", bandpass_filters.filter_gaussian),
        ("uniform", bandpass_filters.filter_uniform),
    ]

    invalid_names = ["gauss", "fourier"]
    _generic_interface_test(method_getter, valid_names_func_pair, invalid_names)
Test the cascade module interface.
pysteps/tests/test_interfaces.py