Пример #1
0
 def test1(self):
     s = StaticStringMatcher("thestring")
     
     for char in "thestring":
         r = s.feed(char)
         
         self.failUnless(r)
Пример #2
0
 def test5(self):
     s = StaticStringMatcher("thestring")
     
     for char in "faultthestring":
         r = s.feed(char)
         self.failIf(r)
Пример #3
0
 def test4(self):
     s = StaticStringMatcher("")
     
     r = s.feed("")
     
     self.failIf(r)