def test_unicode_string_flag_escaped(self):
"""Test ignoring Unicode/ASCII string flag in group."""
if PY3:
template = bre.SearchTemplate(r'Testing for \(?ia) ASCII flag.', False, None)
template.apply()
self.assertTrue(template.unicode)
else:
template = bre.SearchTemplate(r'Testing for \(?iu) Unicode flag.', False, None)
template.apply()
self.assertFalse(template.unicode)
评论列表
文章目录