How to use the debops.config.DEFAULTS function in debops

To help you get started, we’ve selected a few debops examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github debops / debops-tools / tests / test_config.py View on Github external
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')