Run cache_master test in tmp dir

This commit is contained in:
Daniel A. Wozniak 2018-04-24 14:58:20 -07:00
parent 8105fd9715
commit 5ff51affbd
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61

View File

@ -444,12 +444,14 @@ class CPModuleTest(ModuleCase):
self.assertIn('ARTHUR:', data)
self.assertNotIn('bacon', data)
def test_cache_master(self):
@with_tempfile
def test_cache_master(self, tgt):
'''
cp.cache_master
'''
ret = self.run_function(
'cp.cache_master',
[tgt],
)
for path in ret:
self.assertTrue(os.path.exists(path))