def test_sparse(self):
        conversors = [ConversorStub(str if arff.PY3 else unicode),
                      ConversorStub(float),
                      ConversorStub(int),
                      ConversorStub(str if arff.PY3 else unicode),
                      ConversorStub(float),
                      ConversorStub(int)]

        fixture = u'{0 Iris,1 3.4, 2 2}'
        self.data.decode_data(fixture, conversors)
        result = self.data.data[0]
        expected = [u'Iris', 3.4, 2, u'0', 0.0, 0]

        self.assertEqual(len(result), len(expected))
        for i in range(len(expected)):
            self.assertEqual(result[i], expected[i])

    # --------------------------------------------------------------------------
    # Tests for the encoding part
Basic data instances.
dataset/ETHPy150Open renatopp/liac-arff/tests/test_data.py/TestData.test_sparse