def test_unicode_string_flag_escaped_deep(self):
"""Test deep escaped Unicode flag."""
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)
评论列表
文章目录