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

Method test_escaped_sh

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

Source from the content-addressed store, hash-verified

9 assert test_fact.escaped('cmd') != 'test value| &'
10
11 def test_escaped_sh(self):
12 test_fact = Fact('test', 'test value| &')
13 test_dupe = test_fact.escaped('sh').replace('\\', '*')
14 assert test_dupe == 'test* value*|* *&'
15 assert test_fact.escaped('sh') != 'test value| &'
16
17 def test_escaped_psh(self):
18 test_fact = Fact('test', 'test value| &')

Callers

nothing calls this directly

Calls 3

escapedMethod · 0.95
FactClass · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected