

def test_index_function(self):
    s = IndexedData(name='Bob', descrip='abc', age=100)
    self.assertEquals('', s.id)
    self.assertEquals('Bob', s.name)
    s.assertEquals('abc', s.descrip)
    self.assertEquals(100, s.age)
    self.assertEquals(['half_age', 'my_name'], sorted(IndexedData.index_names()))
    self.assertEquals({
        'my_name': 'Bob',
        'half_age': 50,
    }, s.indexes())
    s.name = 'changed'
    s.age = 2
    self.assertEquals({
        'my_name': 'changed',
        'half_age': 1,
    }, s.indexes())

dataset/ETHPy150Open memphis-iis/GLUDB/tests/index_tests.py IndexTesting.test_index_function/VarMisuse@49/62 `self`->`s`