MCPcopy Create free account
hub / github.com/python/cpython / test_aliases_names_in_pua_range

Method test_aliases_names_in_pua_range

Lib/test/test_ucn.py:177–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 unicodedata.ucd_3_2_0.lookup(alias)
176
177 def test_aliases_names_in_pua_range(self):
178 # We are storing aliases in the PUA 15, but their names shouldn't leak
179 for cp in range(0xf0000, 0xf0100):
180 with self.assertRaises(ValueError) as cm:
181 unicodedata.name(chr(cp))
182 self.assertEqual(str(cm.exception), 'no such name')
183
184 def test_named_sequences_names_in_pua_range(self):
185 # We are storing named seq in the PUA 15, but their names shouldn't leak

Callers

nothing calls this directly

Calls 4

strFunction · 0.85
assertRaisesMethod · 0.45
nameMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected