'Test running \'git commit\' via cola.git'

def test_git_commit(self):

    self.write_file(u'A', u'A')
    self.write_file(u'B', u'B')
    self.git(u'add', u'A', u'B')
    model = MainModel(cwd=core.getcwd())
    model.git.commit(m=u'commit    test')
    log = self.git(u'log', u'--pretty=oneline')
    self.assertEqual(len(log.splitlines()), 1)
