def test_feature_interface():
    """Test the feature detection module interface."""

    from pysteps.feature import blob
    from pysteps.feature import tstorm
    from pysteps.feature import shitomasi

    method_getter = pysteps.feature.interface.get_method

    valid_names_func_pair = [
        ("blob", blob.detection),
        ("tstorm", tstorm.detection),
        ("shitomasi", shitomasi.detection),
    ]

    invalid_names = ["blobs", "storm", "shi-tomasi"]
    _generic_interface_test(method_getter, valid_names_func_pair, invalid_names)
Test the feature detection module interface.
pysteps/tests/test_interfaces.py