MCPcopy Index your code
hub / github.com/saltstack/salt / test_get_url_dest_empty

Method test_get_url_dest_empty

tests/integration/modules/test_cp.py:188–196  ·  view source on GitHub ↗

cp.get_url with salt:// source given and destination omitted.

(self)

Source from the content-addressed store, hash-verified

186
187 @pytest.mark.slow_test
188 def test_get_url_dest_empty(self):
189 """
190 cp.get_url with salt:// source given and destination omitted.
191 """
192 ret = self.run_function("cp.get_url", ["salt://grail/scene33"])
193 with salt.utils.files.fopen(ret, "r") as scene:
194 data = salt.utils.stringutils.to_unicode(scene.read())
195 self.assertIn("KNIGHT: They're nervous, sire.", data)
196 self.assertNotIn("bacon", data)
197
198 @pytest.mark.slow_test
199 def test_get_url_no_dest(self):

Callers

nothing calls this directly

Calls 2

run_functionMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected