Rev 179: Added further test. in http://bzr.daniel-watkins.co.uk/pqm/246846

Daniel Watkins daniel at daniel-watkins.co.uk
Tue Jul 15 16:36:27 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/246846

------------------------------------------------------------
revno: 179
revision-id: daniel at daniel-watkins.co.uk-20080715153507-g5c0tlw425k8df3w
parent: daniel at daniel-watkins.co.uk-20080715152747-6hptga6dvh3cyeor
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: 246846
timestamp: Tue 2008-07-15 16:35:07 +0100
message:
  Added further test.
-------------- next part --------------
=== modified file 'pqm/tests/test_pqm.py'
--- a/pqm/tests/test_pqm.py	2008-07-10 07:43:40 +0000
+++ b/pqm/tests/test_pqm.py	2008-07-15 15:35:07 +0000
@@ -501,8 +501,10 @@
         handler.commit("me", "bzrbranch", "wheee", "bzrbranch-parent", config)
         for path in ['bzrbranch', 'bzrbranch-parent', 'bzrbranch-public']:
             branch = Branch.open(path)
-            rev = branch.last_revision()
-            self.assertEqual(branch.repository.get_revision(rev).message, 'wheee')
+            revid = branch.last_revision()
+            revision = branch.repository.get_revision(revid)
+            self.assertEqual(revision.message, 'wheee')
+            self.assertEqual(revision.get_apparent_author(), 'me')
 
     def test_commit_uncommits_when_push_fails(self):
         from bzrlib.branch import Branch



More information about the bazaar-commits mailing list