def METHOD_NAME(self):
    # Class is defined within setUp to reset mocks before each test
    class MockWidget(OWBaseWidget):
        name = "foo"
        class Inputs:
            input_int = MockInput("int1", int)
            input_float1 = MockInput("float1", float, default=True)
            input_float2 = MockInput("float2", float)
            input_str1 = MockInput("str1", str)
            input_str2 = MockInput("str2", str)
        int1 = Inputs.input_int(MagicMock())
        float1 = Inputs.input_float1(MagicMock())
        float2 = Inputs.input_float2(MagicMock())
        str1 = Inputs.input_str1(MagicMock())
        str2 = Inputs.input_str2(MagicMock())
        show = MagicMock()
        saveSettings = MagicMock()
    super().METHOD_NAME()
    self.widgetClass = MockWidget
    sys.exit.reset_mock()
    widgetpreview.QApplication.reset_mock()
    self.app.exec.reset_mock()