def run(self): """Install patched manifests to the master node.""" for srcpath, dstpath in self._copypairs: # we can't just copy folder as is, since it's not a full and # overwrite mode will erase entire old content for srcfile in iterfiles(srcpath): copy(srcfile, srcfile.replace(srcpath, dstpath))
def run(self): """Install patched manifests to the master node. """ for srcpath, dstpath in self._copypairs: # we can't just copy folder as is, since it's not a full and # overwrite mode will erase entire old content for srcfile in iterfiles(srcpath): copy(srcfile, srcfile.replace(srcpath, dstpath))
def test_iterfiles(self, walk): for _ in utils.iterfiles('path/to/dir'): pass walk.assert_called_once_with('path/to/dir', topdown=True)
def test_iterfiles(self, walk): for _ in utils.iterfiles('path/to/dir'): pass walk.assert_called_once_with('path/to/dir', topdown=True)