Beispiel #1
0
 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'))
Beispiel #2
0
 def testFromDepExistingRepo(self):
     c = commit.Commit.FromDep(commit.Dep(test.CHROMIUM_URL, 'commit_0'))
     self.assertEqual(c, Commit(0))
Beispiel #3
0
 def testFromDepExistingRepo(self):
     c = commit.Commit.FromDep(commit.Dep(test.CHROMIUM_URL, 'git_hash'))
     self.assertEqual(c, commit.Commit('chromium', 'git_hash'))