MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_groupdict

Method test_groupdict

Lib/test/test_re.py:724–727  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

722 self.checkPatternError(r'(abc\1)', 'cannot refer to an open group', 4)
723
724 def test_groupdict(self):
725 self.assertEqual(re.match('(?P<first>first) (?P<second>second)',
726 'first second').groupdict(),
727 {'first':'first', 'second':'second'})
728
729 @unittest.expectedFailure # TODO: RUSTPYTHON
730 def test_expand(self):

Callers

nothing calls this directly

Calls 3

groupdictMethod · 0.80
assertEqualMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected