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"))
def test_consecutive_regex_not_allowed(self): with self.assertRaises(ValueError): rule(r"one", r"two")
def test_consequtive_regex_not_allowed(self): with self.assertRaises(ValueError): rule(r'one', r'two')