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

Method checkletter

Lib/test/test_ucn.py:25–31  ·  view source on GitHub ↗
(self, name, code)

Source from the content-addressed store, hash-verified

23class UnicodeNamesTest(unittest.TestCase):
24
25 def checkletter(self, name, code):
26 # Helper that put all \N escapes inside eval'd raw strings,
27 # to make sure this script runs even if the compiler
28 # chokes on \N escapes
29 res = ast.literal_eval(r'"\N{%s}"' % name)
30 self.assertEqual(res, code)
31 return res
32
33 def test_general(self):
34 # General and case insensitivity test:

Callers 11

test_generalMethod · 0.95
test_hangul_syllablesMethod · 0.95
test_nushu_charactersMethod · 0.95
test_misc_symbolsMethod · 0.95
test_aliasesMethod · 0.95

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected