'Test cola.git.config()'

def test_git_config(self):

    self.git(u'config', u'section.key', u'value')
    model = MainModel(cwd=core.getcwd())
    value = model.git.config(u'section.key', get=True)
    self.assertEqual(value, (0, u'value', u''))
    model.config_set(u'section.bool', True)
    value = model.git.config(u'section.bool', get=True)
    self.assertEqual(value, (0, u'true', u''))
    model.config_set(u'section.bool', False)
    config_dict = model.config_dict(local=True)
    self.assertEqual(config_dict[u'section_key'], u'value')
    self.assertEqual(config_dict[u'section_bool'], False)
    global_dict = model.config_dict(local=False)
    self.assertEqual(type(global_dict), dict)
