def test_objectlike_repr_long_val(self): o = inspector.HasAttr( bytes="011110101000101010011111111110000001010100000001110000000011" ) eq_( repr(o), "arg.has_attr(bytes='011110101000101010011111111110000001010100000...')" )
def test_objectlike_unicode(self): o = inspector.HasAttr(one=1, ivan="Ivan_Krsti\u0107") eq_(repr(o), "arg.has_attr(ivan=%s, one=1)" % repr('Ivan_Krsti\u0107'))
def test_objectlike_repr(self): o = inspector.HasAttr(one=1, two="two") eq_(repr(o), "arg.has_attr(one=1, two='two')")