def test_config_setup(self): config = confighelper.configure(self.screen_name, config_file=self.yaml, random='foo') assert config['secret'] == 'LIMA' assert config['consumer_key'] == 'NOVEMBER' assert config['random'] == 'foo'
def testSimpleConfig(self): config = confighelper.configure(config_file=self.simple, random='foo') assert config['secret'] == 'LIMA' assert config['consumer_key'] == 'NOVEMBER' assert config['random'] == 'foo'
def testConfigKwargPassingJSON(self): conf = confighelper.parse(self.json) config = confighelper.configure(config_file=self.json, **conf) assert conf['custom'] == config['custom']
def test_simple(self): config = confighelper.configure(config_file=self.simple) self.assertEqual(config['key'], 'INDIA') self.assertEqual(config["consumer_key"], "NOVEMBER")
def testConfigKwargPassing(self): conf = confighelper.parse(self.yaml) config = confighelper.configure(config_file=self.yaml, **conf) assert conf['custom'] == config['custom']
def test_json(self): config = confighelper.configure(self.screen_name, config_file=self.json) self.assertEqual(config['key'], 'INDIA') self.assertEqual(config["consumer_key"], "NOVEMBER")