def test6(self): anm = AlphaNumMatcher() for char in ";@#$abcd1234efgh5678": anm.feed(char) self.assertEqual(anm.getvalue(), "abcd1234efgh5678")
def test4(self): anm = AlphaNumMatcher() for char in "1234": anm.feed(char) self.assertEqual(anm.getvalue(), "1234")
def test7(self): anm = AlphaNumMatcher() for char in " ;!@#$%^&*()\/?[]{}+=-~`'\"|.,": s = anm.feed(char) self.failIf(s) for char in "abcd1234": s = anm.feed(char) self.failUnless(s) for char in " ;!@#$%^&*()\/?[]{}+=-~`'\"|.,": s = anm.feed(char) self.failIf(s)
def test3(self): anm = AlphaNumMatcher() for char in " ;!@#$%^&*()\/?[]{}+=-~`'\"|.,": s = anm.feed(char) self.failIf(s)
def test2(self): anm = AlphaNumMatcher() for char in "1234": s = anm.feed(char) self.failUnless(s)
def test1(self): anm = AlphaNumMatcher() for char in "abcd": s = anm.feed(char) self.failUnless(s)