MCPcopy Create free account
hub / github.com/davidblewett/rure-python / test_groupdict

Method test_groupdict

rure/tests/test_matchobject.py:45–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.assertEqual(m.groups(u'0'), (u'24', u'0'))
44
45 def test_groupdict(self):
46 m = rure.match(u"(?P<first_name>\\w+) (?P<last_name>\\w+)",
47 u"Malcolm Reynolds")
48 self.assertEqual(m.groupdict(), {u'first_name': u'Malcolm',
49 u'last_name': u'Reynolds'})
50
51 def test_start_end(self):
52 m = rure.search(u"remove_this", u"tony@tiremove_thisger.net")

Callers

nothing calls this directly

Calls 2

matchMethod · 0.80
groupdictMethod · 0.80

Tested by

no test coverage detected