'Check widget\'s outputs'

def test_outputs(self):

    for (_input, _output, data) in (('in_data', 'out_data', self.iris), ('in_learner', 'out_learner', self.learner), ('in_classifier', 'out_classifier', self.model), ('in_object', 'out_object', 'object')):
        self.widget.text.setPlainText('{}    =    {}'.format(_output, _input))
        self.send_signal(_input, data)
        self.assertEqual(self.get_output(_output), data)
        self.send_signal(_input, None)
        self.widget.text.setPlainText('print({})'.format(_output))
        self.widget.execute_button.button.click()
        self.assertEqual(self.get_output(_output), None)
