def test6(self): im = IntMatcher() for char in "before123between456after": im.feed(char) self.assertEqual(im.getvalue(),123 )
def test3(self): im = IntMatcher() for char in "123abc": im.feed(char) self.assertEqual(im.getvalue(),123 )