Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_defaults_windows_with_APPDATA(self):
sys.platform = 'win32'
setenv('APPDATA', 'H:\\my\\own\\data')
reload(debops.config)
cfgparser = ConfigParser.SafeConfigParser()
cfgparser.readfp(cStringIO.StringIO(debops.config.DEFAULTS))
self.assertEqual(cfgparser.get('paths', 'data-home'),
'H:\\my\\own\\data/debops')