cp.cache_local_file
(self)
| 410 | |
| 411 | @pytest.mark.slow_test |
| 412 | def test_cache_local_file(self): |
| 413 | """ |
| 414 | cp.cache_local_file |
| 415 | """ |
| 416 | src = os.path.join(RUNTIME_VARS.TMP, "random") |
| 417 | with salt.utils.files.fopen(src, "w+") as fn_: |
| 418 | fn_.write(salt.utils.stringutils.to_str("foo")) |
| 419 | ret = self.run_function("cp.cache_local_file", [src]) |
| 420 | with salt.utils.files.fopen(ret, "r") as cp_: |
| 421 | self.assertEqual(salt.utils.stringutils.to_unicode(cp_.read()), "foo") |
| 422 | |
| 423 | @pytest.mark.skip_if_binaries_missing("nginx") |
| 424 | @pytest.mark.slow_test |
nothing calls this directly
no test coverage detected