

def test_recursive_repr(self):
    m = MyContainer(list('abcde'))
    m.append(m)
    m.append('x')
    m.append(m)
    self.assertEqual(repr(m), '<a, b, c, d, e, ..., x, ...>')
    m = MyContainer2(list('abcde'))
    m.append(m)
    m.append('x')
    m.append(m)
    self.assertEqual(repr(self), '<a, b, c, d, e, +++, x, +++>')

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_reprlib.py TestRecursiveRepr.test_recursive_repr/VarMisuse@90/130 `m`->`self`