Mercurial > kallithea
comparison rhodecode/tests/vcs/test_git.py @ 3045:b81680c97494 beta
fixed tests
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 29 Nov 2012 21:35:08 +0100 |
parents | 32471bd1f4ee |
children | d7488551578e |
comparison
equal
deleted
inserted
replaced
3044:c57a37430dc9 | 3045:b81680c97494 |
---|---|
468 } | 468 } |
469 | 469 |
470 for fname, revision_dict in files.items(): | 470 for fname, revision_dict in files.items(): |
471 for rev, data in revision_dict.items(): | 471 for rev, data in revision_dict.items(): |
472 cs = self.repo.get_changeset(rev) | 472 cs = self.repo.get_changeset(rev) |
473 ann = cs.get_file_annotate(fname) | 473 |
474 | 474 l1_1 = [x[1] for x in cs.get_file_annotate(fname)] |
475 l1 = [x[1].raw_id for x in ann] | 475 l1_2 = [x[2]().raw_id for x in cs.get_file_annotate(fname)] |
476 self.assertEqual(l1_1, l1_2) | |
477 l1 = l1_1 | |
476 l2 = files[fname][rev]['changesets'] | 478 l2 = files[fname][rev]['changesets'] |
477 self.assertTrue(l1 == l2 , "The lists of revision for %s@rev %s" | 479 self.assertTrue(l1 == l2 , "The lists of revision for %s@rev %s" |
478 "from annotation list should match each other, " | 480 "from annotation list should match each other, " |
479 "got \n%s \nvs \n%s " % (fname, rev, l1, l2)) | 481 "got \n%s \nvs \n%s " % (fname, rev, l1, l2)) |
480 | 482 |