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

Method test_groups

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

Source from the content-addressed store, hash-verified

34 self.assertEqual(m.group(1), u'c3')
35
36 def test_groups(self):
37 m = rure.match(u"(\\d+)\\.(\\d+)", u"24.1632")
38 self.assertEqual(m.groups(), ('24', '1632'))
39
40 def test_groups_optional(self):
41 m = rure.match(u"(\\d+)\\.?(\\d+)?", u"24")

Callers

nothing calls this directly

Calls 2

matchMethod · 0.80
groupsMethod · 0.80

Tested by

no test coverage detected