cp.get_url with salt:// source given and destination omitted.
(self)
| 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): |
nothing calls this directly
no test coverage detected