MCPcopy
hub / github.com/saltstack/salt / test_get_template

Method test_get_template

tests/integration/modules/test_cp.py:119–129  ·  view source on GitHub ↗

cp.get_template

(self, tgt)

Source from the content-addressed store, hash-verified

117 @with_tempfile()
118 @pytest.mark.slow_test
119 def test_get_template(self, tgt):
120 """
121 cp.get_template
122 """
123 self.run_function(
124 "cp.get_template", ["salt://grail/scene33", tgt], spam="bacon"
125 )
126 with salt.utils.files.fopen(tgt, "r") as scene:
127 data = salt.utils.stringutils.to_unicode(scene.read())
128 self.assertIn("bacon", data)
129 self.assertNotIn("spam", data)
130
131 @pytest.mark.slow_test
132 def test_get_dir(self):

Callers

nothing calls this directly

Calls 2

run_functionMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected