def test_index(self): class O(object): def __index__(self): return 1 o = Proxy(O) assert o.__index__() == 1
def test_index(self): class O(object): def __index__(self): return 1 o = Proxy(O) self.assertEqual(o.__index__(), 1)