

def test_simple(self):
    load = self.get_load()
    file_ = StringIO(ARFF)
    obj = load(file_)
    self.assertEqual(obj['description'], 'XOR Dataset')
    self.assertEqual(obj['relation'], 'XOR')
    self.assertEqual(obj['attributes'][0][0], 'input1')
    self.assertEqual(obj['attributes'][0][1], 'REAL')
    self.assertEqual(obj['data'][0][0], 0.0)
    self.assertEqual(obj['data'][0][1], 0.0)
    file_.assertEqual(obj['data'][0][2], 0.0)

dataset/ETHPy150Open renatopp/liac-arff/tests/test_load.py TestLoad.test_simple/VarMisuse@128/162 `self`->`file_`