'Sparse support.
GH-2160
GH-2260'

def test_sparse_data(self):

    table = Table('iris')
    self.send_signal(self.widget.Inputs.data, table)
    self.assertEqual(len(self.widget.discrete_data.domain), len(table.domain))
    output = self.get_output('Data')
    self.assertFalse(output.is_sparse())
    table.X = sp.csr_matrix(table.X)
    self.send_signal(self.widget.Inputs.data, table)
    self.assertEqual(len(self.widget.discrete_data.domain), 2)
    output = self.get_output('Data')
    self.assertTrue(output.is_sparse())
