def METHOD_NAME(manager_nospawn, minimal_conf_noscreen, widget_class, kwargs):
    if widget_class in exclusive_backend:
        if exclusive_backend[widget_class] != manager_nospawn.backend.name:
            pytest.skip("Unsupported backend")
    widget = widget_class(**kwargs)
    widget.draw = no_op
    # If widget inits ok then kwargs will now be attributes
    for k, v in kwargs.items():
        assert getattr(widget, k) == v
    # Test configuration
    config = minimal_conf_noscreen
    config.screens = [libqtile.config.Screen(top=libqtile.bar.Bar([widget], 10))]
    manager_nospawn.start(config)
    i = manager_nospawn.c.bar["top"].info()
    # Check widget is registered by checking names of widgets in bar
    assert i["widgets"][0]["name"] == widget.name