(self, name, code)
| 23 | class 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: |
no test coverage detected