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

Method test_ninside

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

Source from the content-addressed store, hash-verified

1215 self.assertTrue(op(b"a", b"abc"), "Should return True")
1216
1217 def test_ninside(self):
1218 op = operators.get_operator("ninside")
1219 self.assertFalse(op("a", None), "Should return False")
1220 self.assertFalse(op("a", "abc"), "Should return False")
1221 self.assertTrue(op("a", "bcd"), "Should return True")
1222
1223
1224class GetOperatorsTest(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected