def test2(self): s = StaticStringMatcher("thestring") for char in "thestring": r = s.feed(char) self.failUnless(r) for char in "fault": r = s.feed(char) self.failIf(r)
def test5(self): s = StaticStringMatcher("thestring") for char in "faultthestring": r = s.feed(char) self.failIf(r)
def test4(self): s = StaticStringMatcher("") r = s.feed("") self.failIf(r)