Beispiel #1
0
 def test_sort(self):
     commits = cvc2git.get_commits(self.history, {})
     cvc2git.sort_commits(commits)
     self.assertEqual("0.11-1", commits[0].revision)
     self.assertEqual("tip-2", commits[2].revision)
Beispiel #2
0
 def test_version_startswith_not_num(self):
     commits = cvc2git.get_commits(self.history, {})
     self.assertEqual(3, len(commits))
     self.assertEqual("tip-2", commits[0].revision)
     self.assertEqual("0.11-1", commits[2].revision)