'The widget discretizes continuous meta attributes'

def test_discretize_meta(self):

    domain = self.iris.domain
    mdomain = Domain(domain.attributes[:(-1)], domain.class_var, metas=domain.attributes[(-1):])
    miris = Table(mdomain, self.iris)
    self.send_signal(self.widget.Inputs.data, miris)
    widget = self.widget
    widget.disc_cont = True
    widget.varview.selectionModel().select(widget.varview.model().index(4, 0))
    self.assertIsInstance(widget.var, DiscreteVariable)
    self.assertEqual(widget.var.name, mdomain.metas[0].name)
