def test_match(): """ lib/lazyregex.py: Test the LazyRegex.match() method """ l = LazyRegex("beep") assert l.match("This shouldn't match! beep beep beep.") is None assert l.match("beep this should match")