def METHOD_NAME(self, widget, mocker):
    mocker.patch.object(widget, 'checked', create=True)
    mocker.patch.object(widget, 'combo', create=True)
    mocker.patch.object(widget, 'textified', create=True)
    mocker.patch.object(widget, 'resetPref', create=True)
    mocker.patch.object(widget, '_validate_input_and_stage', create=True)
    pref = DummyPrefWidget("Dummy Widget")
    text_input = pref.addTextInput("blah")
    text_input.textChanged.connect(
        lambda: pref._validate_input_and_stage(text_input, "blah"))
    pref.addCheckBox("ho hum")
    pref.addComboBox("combo", ["a", "b", "c"], "a")
    widget.addWidget(pref)
    widget.restoreDefaultPreferences()
    assert widget.resetPref.called_once()
    for child in pref.layout().children():
        if isinstance(child, QLineEdit):
            child.setText("new text")
        elif isinstance(child, QComboBox):
            child.setCurrentIndex(1)
        elif isinstance(child, QCheckBox):
            child.setChecked(not child.checkState())
    assert widget.textified.called_once()
    assert widget._validate_input_and_stage.called_once()
    assert widget.combo.called_once()
    assert widget.checked.called_once()