MCPcopy Create free account
hub / github.com/StackStorm/st2 / test_regex_fail

Method test_regex_fail

st2common/tests/unit/test_operators.py:868–875  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

866 self.assertFalse(op(string, "(pikachu|snorlax|charmander)"), "Passed regex.")
867
868 def test_regex_fail(self):
869 op = operators.get_operator("regex")
870 self.assertFalse(op("v1_foo", "v1$"), "Passed regex.")
871
872 string = "fooPONIESbarfooooo"
873 self.assertFalse(op(string, "ponies"), "Passed regex.")
874
875 self.assertFalse(op("1", None), "Passed regex with None as criteria_pattern.")
876
877 def test_matchregex_case_variants(self):
878 op = operators.get_operator("MATCHREGEX")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected