Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self.sandbox = tempfile.mkdtemp()
self.addCleanup(shutil.rmtree, self.sandbox)
self._saved_configfiles = debops.config._configfiles[:]
# remove '/etc/debobs.cfg' to make results predictable
debops.config._configfiles.remove('/etc/debops.cfg')