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

Method test_match

rure/tests/test_regexobject.py:18–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.assertFalse(pattern.search(u"dog", 1))
17
18 def test_match(self):
19 pattern = rure.compile(u"o")
20 self.assertFalse(pattern.match(u"dog"))
21 self.assertTrue(pattern.match(u"dog", 1))
22
23 def test_findall(self):
24 haystack = u"abc xyz"

Callers

nothing calls this directly

Calls 2

compileMethod · 0.80
matchMethod · 0.80

Tested by

no test coverage detected