'MosaicVizrank returns table row corresponding to the state'

def test_row_for_state(self):

    self.widget.set_data(self.iris)
    self.vizrank.attr_ordering = [DiscreteVariable(n) for n in 'abcd']
    items = self.vizrank.row_for_state(0, [1, 3, 0])
    self.assertEqual(len(items), 1)
    item = items[0]
    self.assertEqual(item.text(), 'a,    b,    d')
    self.assertEqual(item.data(self.vizrank._AttrRole), tuple((self.vizrank.attr_ordering[i] for i in [0, 1, 3])))
