Example #1
0
 def test_empty_regex_match_not_allowed(self):
     with self.assertRaises(ValueError):
         rule(r"")
     with self.assertRaises(ValueError):
         rule(r"[a-z]*")
     self.assertIsNotNone(
         rule(r"This long string must not match as this expression "
              "will be part of the system unless ctparse is reloaded"))
Example #2
0
 def test_consecutive_regex_not_allowed(self):
     with self.assertRaises(ValueError):
         rule(r"one", r"two")
Example #3
0
 def test_consequtive_regex_not_allowed(self):
     with self.assertRaises(ValueError):
         rule(r'one', r'two')