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

Method test_lazy_eval_unicode

IPython/core/tests/test_prompts.py:9–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class PromptTests(unittest.TestCase):
9 def test_lazy_eval_unicode(self):
10 u = u'ünicødé'
11 lz = LazyEvaluate(lambda : u)
12 self.assertEqual(str(lz), u)
13 self.assertEqual(format(lz), u)
14
15 def test_lazy_eval_nonascii_bytes(self):
16 u = u'ünicødé'

Callers

nothing calls this directly

Calls 1

LazyEvaluateClass · 0.90

Tested by

no test coverage detected