Skip to content

Instantly share code, notes, and snippets.

@lusis
Created August 23, 2010 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/545953 to your computer and use it in GitHub Desktop.
Save lusis/545953 to your computer and use it in GitHub Desktop.
import configobj
class MockConfigObj(object):
def __init__(self):
# foo
self.config = {}
self.config['main'] = {}
self.config['main']['environment'] = 'QA'
self.config['main']['cobbler'] = '10.10.10.10'
self.config['main']['nextjnpport'] = '1020'
def ConfigObj(self, aconfig = ''):
return self.config
configobj.ConfigObj = MockConfigObj().ConfigObj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment