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