cp.get_file
(self, tgt)
| 41 | @with_tempfile() |
| 42 | @pytest.mark.slow_test |
| 43 | def test_get_file(self, tgt): |
| 44 | """ |
| 45 | cp.get_file |
| 46 | """ |
| 47 | self.run_function("cp.get_file", ["salt://grail/scene33", tgt]) |
| 48 | with salt.utils.files.fopen(tgt, "r") as scene: |
| 49 | data = salt.utils.stringutils.to_unicode(scene.read()) |
| 50 | self.assertIn("KNIGHT: They're nervous, sire.", data) |
| 51 | self.assertNotIn("bacon", data) |
| 52 | |
| 53 | @pytest.mark.slow_test |
| 54 | def test_get_file_to_dir(self): |
nothing calls this directly
no test coverage detected