def test_parse(self):
     res = set(data_parser.parse())
     self.assertFalse('\u0023' in res)
     self.assertFalse('\u002A' in res)
     self.assertFalse('\u0030-\u0039' in res)
     self.assertTrue('\u00A9' in res)
     self.assertTrue('\u2194-\u2199' in res)  # range
Example #2
0
 def test_render_template(self):
     code_points = data_parser.parse()
     template = data_parser.read_template()
     rendered_template = data_parser.render_template(template, code_points)
     self.assertTrue('{{code_points}}' not in rendered_template)
     self.assertTrue('RE_PATTERN_TEMPLATE' in rendered_template)
Example #3
0
 def test_parse(self):
     res = set(data_parser.parse())
     self.assertTrue('\u00A9' in res)
     self.assertTrue('\u2194-\u2199' in res)  # range
 def test_render_template(self):
     code_points = data_parser.parse()
     template = data_parser.read_template()
     rendered_template = data_parser.render_template(template, code_points)
     self.assertTrue('{{code_points}}' not in rendered_template)
     self.assertTrue('RE_PATTERN_TEMPLATE' in rendered_template)