コード例 #1
0
 def test_log_commits(self):
     branch = GitBranch(self.repo.path, "master")
     self.repo.do_commit("message", committer="Jelmer Vernooij")
     log = list(branch.log())
     self.assertEquals(1, len(log))
     self.assertEquals("message", log[0].message)
コード例 #2
0
 def test_log_empty(self):
     branch = GitBranch(self.repo.path, "master")
     self.assertEquals([], list(branch.log()))