def test1(self): s = StaticStringMatcher("thestring") for char in "thestring": r = s.feed(char) self.failUnless(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)