MCPcopy Create free account
hub / github.com/ipython/ipython / test_unicode_repr

Function test_unicode_repr

IPython/lib/tests/test_pretty.py:244–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242
243
244def test_unicode_repr():
245 u = u"üniçodé"
246 ustr = u
247
248 class C(object):
249 def __repr__(self):
250 return ustr
251
252 c = C()
253 p = pretty.pretty(c)
254 nt.assert_equal(p, u)
255 p = pretty.pretty([c])
256 nt.assert_equal(p, u'[%s]' % u)
257
258
259def test_basic_class():

Callers

nothing calls this directly

Calls 2

prettyMethod · 0.80
CClass · 0.70

Tested by

no test coverage detected