MCPcopy Index your code
hub / github.com/python/cpython / test_unicode_values

Method test_unicode_values

Lib/test/test_string/test_string.py:442–445  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

440 self.assertIn('line 1, col 1', str(err.exception))
441
442 def test_unicode_values(self):
443 s = Template('$who likes $what')
444 d = dict(who='t\xffm', what='f\xfe\fed')
445 self.assertEqual(s.substitute(d), 't\xffm likes f\xfe\x0ced')
446
447 def test_keyword_arguments(self):
448 eq = self.assertEqual

Callers

nothing calls this directly

Calls 3

substituteMethod · 0.95
TemplateClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected