def test_not_matches_regexp(self): self.assertFalse( validate.matches_regexp("abCeCBa", re.compile("^[a-d]+$", re.IGNORECASE)))
def test_not_matches_string(self): self.assertFalse(validate.matches_regexp("abcDcba", "^[a-d]+$"))
def test_matches_string(self): self.assertTrue(validate.matches_regexp("abcdcba", "^[a-d]+$"))
def test_not_matches_regexp(self): self.assertFalse(validate.matches_regexp( "abCeCBa", re.compile("^[a-d]+$", re.IGNORECASE) ))