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

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

        self.assertEqual(len(result), 4)
        self.assertEqual(result[0], expected[0])
        self.assertEqual(result[1], expected[1])
        self.assertEqual(result[2], expected[2])
        self.assertEqual(result[3], expected[3])
Basic data instances.
dataset/ETHPy150Open renatopp/liac-arff/tests/test_data.py/TestLODData.test_conversor