'Check scoring methods check boxes'

def test_scoring_method_check_box(self):

    boxes = (([self.widget.cls_scoring_box] * 7) + ([self.widget.reg_scoring_box] * 2))
    for (check_box, box) in zip(self.widget.score_checks, boxes):
        self.assertEqual(check_box.parent(), box)
    self.send_signal(self.widget.Inputs.data, self.iris)
    self.assertEqual(self.widget.score_stack.currentWidget(), boxes[0])
    self.send_signal(self.widget.Inputs.data, self.housing)
    self.assertEqual(self.widget.score_stack.currentWidget(), boxes[7])
    data = Table.from_table(Domain(self.iris.domain.variables), self.iris)
    self.send_signal(self.widget.Inputs.data, data)
    self.assertNotIn(self.widget.score_stack.currentWidget(), boxes)
