Exemple #1
0
 def test_not_matches_regexp(self):
     self.assertFalse(
         validate.matches_regexp("abCeCBa",
                                 re.compile("^[a-d]+$", re.IGNORECASE)))
Exemple #2
0
 def test_not_matches_string(self):
     self.assertFalse(validate.matches_regexp("abcDcba", "^[a-d]+$"))
Exemple #3
0
 def test_matches_string(self):
     self.assertTrue(validate.matches_regexp("abcdcba", "^[a-d]+$"))
Exemple #4
0
 def test_not_matches_regexp(self):
     self.assertFalse(validate.matches_regexp(
         "abCeCBa",
         re.compile("^[a-d]+$", re.IGNORECASE)
     ))
Exemple #5
0
 def test_not_matches_string(self):
     self.assertFalse(validate.matches_regexp("abcDcba", "^[a-d]+$"))
Exemple #6
0
 def test_matches_string(self):
     self.assertTrue(validate.matches_regexp("abcdcba", "^[a-d]+$"))