'Check widget\'s inputs'

def test_inputs(self):

    for (_input, data) in (('in_data', self.iris), ('in_learner', self.learner), ('in_classifier', self.model), ('in_object', 'object')):
        self.assertEqual(getattr(self.widget, _input), None)
        self.send_signal(_input, data)
        self.assertEqual(getattr(self.widget, _input), data)
        self.send_signal(_input, None)
        self.assertEqual(getattr(self.widget, _input), None)
