cp.get_template
(self, tgt)
| 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): |
nothing calls this directly
no test coverage detected