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

Method test_inside

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

Source from the content-addressed store, hash-verified

1204 self.assertTrue(op(None, None), "Should return True")
1205
1206 def test_inside(self):
1207 op = operators.get_operator("inside")
1208 self.assertFalse(op("a", None), "Should return False")
1209 self.assertFalse(op("a", "bcd"), "Should return False")
1210 self.assertTrue(op("a", "abc"), "Should return True")
1211
1212 # Mixing bytes and strings / unicode should still work
1213 self.assertTrue(op(b"a", "abc"), "Should return True")
1214 self.assertTrue(op("a", b"abc"), "Should return True")
1215 self.assertTrue(op(b"a", b"abc"), "Should return True")
1216
1217 def test_ninside(self):
1218 op = operators.get_operator("ninside")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected