'Error is shown when output variables are filled with wrong variable types.
And also output variable is set to None.
GH-2308'

def test_wrong_outputs(self):

    self.assertEqual(len(self.widget.Error.active), 0)
    for (_input, _output, data) in (('in_data', 'out_data', self.iris), ('in_learner', 'out_learner', self.learner), ('in_classifier', 'out_classifier', self.model)):
        self.widget.text.setPlainText('{}    =    {}'.format(_output, _input))
        self.send_signal(_input, '42')
        self.assertEqual(self.get_output(_output), None)
        self.assertTrue(getattr(self.widget.Error, _output).is_shown())
        self.send_signal(_input, data)
        self.assertFalse(getattr(self.widget.Error, _output).is_shown())
