'Check widget\'s data sent from OWColor widget'

def test_input_from_owcolor(self):

    owcolor = self.create_widget(OWColor)
    self.send_signal('Data', self.iris, widget=owcolor)
    owcolor.disc_model.setData(QModelIndex(), (250, 97, 70, 255), ColorRole)
    owcolor.cont_model.setData(QModelIndex(), ((255, 80, 114, 255), (255, 255, 0, 255), False), ColorRole)
    owcolor_output = self.get_output('Data', owcolor)
    self.send_signal('Data', owcolor_output)
    self.assertEqual(self.widget.data, owcolor_output)
    self.assertIsNotNone(self.widget.data.domain.class_vars[(-1)].colors)
