def METHOD_NAME(self):
    """
    Check that plugins are loaded in the order specified in the config
    """
    config_plugins = config["ckan.plugins"]
    config[
        "ckan.plugins"
    ] = "test_observer_plugin mapper_plugin mapper_plugin2"
    plugins.load_all()
    observerplugin = plugins.get_plugin("test_observer_plugin")
    expected_order = _make_calls(
        plugins.get_plugin("mapper_plugin"),
        plugins.get_plugin("mapper_plugin2"),
    )
    assert observerplugin.before_load.calls[:2] == expected_order
    expected_order = _make_calls(
        plugins.get_plugin("test_observer_plugin"),
        plugins.get_plugin("mapper_plugin"),
        plugins.get_plugin("mapper_plugin2"),
    )
    assert observerplugin.after_load.calls[:3] == expected_order
    config[
        "ckan.plugins"
    ] = "test_observer_plugin mapper_plugin2 mapper_plugin"
    plugins.load_all()
    expected_order = _make_calls(
        plugins.get_plugin("mapper_plugin2"),
        plugins.get_plugin("mapper_plugin"),
    )
    assert observerplugin.before_load.calls[:2] == expected_order
    expected_order = _make_calls(
        plugins.get_plugin("test_observer_plugin"),
        plugins.get_plugin("mapper_plugin2"),
        plugins.get_plugin("mapper_plugin"),
    )
    assert observerplugin.after_load.calls[:3] == expected_order
    # cleanup
    config["ckan.plugins"] = config_plugins
    plugins.load_all()