MCPcopy
hub / github.com/apache/caldera / test_escaped_cmd

Method test_escaped_cmd

tests/objects/test_fact.py:6–9  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4class TestFact:
5
6 def test_escaped_cmd(self):
7 test_fact = Fact('test', 'test value| &')
8 assert test_fact.escaped('cmd') == 'test^ value^|^ ^&'
9 assert test_fact.escaped('cmd') != 'test value| &'
10
11 def test_escaped_sh(self):
12 test_fact = Fact('test', 'test value| &')

Callers

nothing calls this directly

Calls 2

escapedMethod · 0.95
FactClass · 0.90

Tested by

no test coverage detected