'MosaicVizrank computes rankings without crashing'

@unittest.skip('Appveyor    sometimes    fails.')
def test_does_not_crash(self):

    widget = self.widget
    vizrank = self.vizrank
    widget.set_data(self.iris)
    vizrank.max_attrs = 2
    widget.interior_coloring = widget.PEARSON
    vizrank.toggle()
    time.sleep(0.5)
    self.assertEqual(vizrank.rank_model.rowCount(), 10)
    widget.interior_coloring = widget.CLASS_DISTRIBUTION
    vizrank.toggle()
    time.sleep(0.5)
    self.assertEqual(vizrank.rank_model.rowCount(), 10)
    widget.set_data(self.iris_no_class)
    vizrank.toggle()
