Lines Matching refs:findall

71         self.assertEqual(x.findall('QabbbcR'), y.findall('QabbbcR'))
152 self.assertRaises(ValueError, re.findall, pattern, 'A', re.I)
358 self.assertEqual(re.findall(":+", "abc"), [])
360 self.assertTypedEqual(re.findall(":+", string),
362 self.assertTypedEqual(re.findall("(:+)", string),
364 self.assertTypedEqual(re.findall("(:)(:*)", string),
368 self.assertTypedEqual(re.findall(b":+", string),
370 self.assertTypedEqual(re.findall(b"(:+)", string),
372 self.assertTypedEqual(re.findall(b"(:)(:*)", string),
378 self.assertEqual(re.findall("%s+" % x, string), [x, xx, xxx])
379 self.assertEqual(re.findall("(%s+)" % x, string), [x, xx, xxx])
380 self.assertEqual(re.findall("(%s)(%s*)" % (x, x), string),
384 self.assertEqual(re.findall(r"(a|(b))", "aba"),
715 self.assertEqual(len(re.findall(r"\b", "a")), 2)
716 self.assertEqual(len(re.findall(r"\B", "a")), 0)
718 self.assertEqual(len(re.findall(r"\b", " ")), 0)
719 self.assertEqual(len(re.findall(r"\b", " ")), 0)
721 self.assertEqual(len(re.findall(r"\B", " ")), 2)
915 self.assertEqual(p.findall(s), list('-./0123456789'))
916 self.assertEqual(re.findall(r'[--1]', s), list('-./01'))
919 self.assertEqual(p.findall(s), list("%&'()*+,-1"))
922 self.assertEqual(p.findall(s), list("%&'()*+,-"))
926 self.assertEqual(p.findall(s), list('&0123456789'))
929 self.assertEqual(p.findall(s), list('&0123456789'))
930 self.assertEqual(re.findall(r'[&&1]', s), list('&1'))
934 self.assertEqual(p.findall(s), list('0123456789a|'))
937 self.assertEqual(p.findall(s), list('0123456789a|'))
938 self.assertEqual(re.findall(r'[||1]', s), list('1|'))
942 self.assertEqual(p.findall(s), list('0123456789~'))
945 self.assertEqual(p.findall(s), list('0123456789~'))
946 self.assertEqual(re.findall(r'[~~1]', s), list('1~'))
950 self.assertEqual(p.findall(s), list('0123456789[]'))
954 self.assertEqual(p.findall(s), list(':[]dgit'))
1015 res = re.findall(re.escape('\u2620'.encode('utf-8')), b)
1683 self.assertEqual(re.findall(r"(?i)(a)\1", "aa \u0100"), ['a'])
1730 self.assertEqual(re.compile(pattern, re.S).findall('xyz'),
1733 self.assertEqual(re.compile(pattern, re.S).findall(b'xyz'),
1769 self.assertEqual(re.findall(r"\b|:+", "a::bc"), ['', '', '::', '', ''])
1770 self.assertEqual(re.findall(r"\b|\w+", "a::bc"),
1852 pat.findall(string='abracadabra', pos=3, endpos=10), ['ab'])
2055 self.assertEqual(re.findall(p, s),
2063 self.assertEqual(re.findall(p, s),