

def test_instance(self):
    eq = self.assertEqual
    i1 = ClassWithRepr('a')
    eq(r(i2), repr(i1))
    i2 = ClassWithRepr(('x' * 1000))
    expected = ((repr(i2)[:13] + '...') + repr(i2)[(- 14):])
    eq(r(i2), expected)
    i3 = ClassWithFailingRepr()
    eq(r(i3), ('<ClassWithFailingRepr instance at %x>' % id(i3)))
    s = r(ClassWithFailingRepr)
    self.assertTrue(s.startswith('<class '))
    self.assertTrue(s.endswith('>'))
    self.assertIn(s.find('...'), [12, 13])

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_reprlib.py ReprTests.test_instance/VarMisuse@27/35 `i1`->`i2`