def check_vizrank(data): self.send_signal(self.widget.Inputs.data, data) if data is not None and data.domain.class_var in \ self.widget.controls.attr_color.model(): self.widget.attr_color = data.domain.class_var if self.widget.btn_vizrank.isEnabled(): vizrank = RadvizVizRank(self.widget) states = [state for state in vizrank.iterate_states(None)] self.assertIsNotNone(vizrank.compute_score(states[0]))