diff 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
line wrap: on
line diff
--- a/rhodecode/tests/vcs/test_git.py	Thu Nov 29 19:59:47 2012 +0100
+++ b/rhodecode/tests/vcs/test_git.py	Thu Nov 29 21:35:08 2012 +0100
@@ -470,9 +470,11 @@
         for fname, revision_dict in files.items():
             for rev, data in revision_dict.items():
                 cs = self.repo.get_changeset(rev)
-                ann = cs.get_file_annotate(fname)
 
-                l1 = [x[1].raw_id for x in ann]
+                l1_1 = [x[1] for x in cs.get_file_annotate(fname)]
+                l1_2 = [x[2]().raw_id for x in cs.get_file_annotate(fname)]
+                self.assertEqual(l1_1, l1_2)
+                l1 = l1_1
                 l2 = files[fname][rev]['changesets']
                 self.assertTrue(l1 == l2 , "The lists of revision for %s@rev %s"
                                 "from annotation list should match each other, "