Created
August 23, 2010 17:44
-
-
Save lusis/545953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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