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

Method test_startswith_fail

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

Source from the content-addressed store, hash-verified

1039 self.assertTrue(op("haystack needle", b"haystack"))
1040
1041 def test_startswith_fail(self):
1042 op = operators.get_operator("startswith")
1043 self.assertFalse(op("hasystack needle haystack", "needle"))
1044 self.assertFalse(op("a hasystack needle haystack", "haystack"))
1045 self.assertFalse(
1046 op("1", None), "Passed startswith with None as criteria_pattern."
1047 )
1048
1049 def test_istartswith(self):
1050 op = operators.get_operator("istartswith")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected