Ejemplo n.º 1
0
 def test1(self):
     s = StaticStringMatcher("thestring")
     
     for char in "thestring":
         r = s.feed(char)
         
         self.failUnless(r)
Ejemplo n.º 2
0
 def test5(self):
     s = StaticStringMatcher("thestring")
     
     for char in "faultthestring":
         r = s.feed(char)
         self.failIf(r)
Ejemplo n.º 3
0
 def test4(self):
     s = StaticStringMatcher("")
     
     r = s.feed("")
     
     self.failIf(r)