def testFromDepNewRepo(self): dep = commit.Dep('https://new/repository/url.git', 'git_hash') c = commit.Commit.FromDep(dep) self.assertEqual(c, commit.Commit('url', 'git_hash'))
def testFromDepExistingRepo(self): c = commit.Commit.FromDep(commit.Dep(test.CHROMIUM_URL, 'commit_0')) self.assertEqual(c, Commit(0))
def testFromDepExistingRepo(self): c = commit.Commit.FromDep(commit.Dep(test.CHROMIUM_URL, 'git_hash')) self.assertEqual(c, commit.Commit('chromium', 'git_hash'))