Rev 2744: In bzrlib.tests.revisionstore_implementations.test_all, in http://people.ubuntu.com/~robertc/baz2.0/misc-fixen

Robert Collins robertc at robertcollins.net
Wed Aug 22 23:29:33 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/misc-fixen

------------------------------------------------------------
revno: 2744
revision-id: robertc at robertcollins.net-20070822222807-nvjwqzrof5gg3s0b
parent: pqm at pqm.ubuntu.com-20070822052832-nxby1d1plok4syek
committer: Robert Collins <robertc at robertcollins.net>
branch nick: misc-fixen
timestamp: Thu 2007-08-23 08:28:07 +1000
message:
  In bzrlib.tests.revisionstore_implementations.test_all,
  test_get_revision_none was confusing because the comment and the test did
  not match. So I made a new test that matched the comment, and altered the
  test name and comment to match the test. (Robert Collins)
modified:
  bzrlib/tests/revisionstore_implementations/test_all.py test_all.py-20060303020702-9b2d4c1d75407f31
=== modified file 'bzrlib/tests/revisionstore_implementations/test_all.py'
--- a/bzrlib/tests/revisionstore_implementations/test_all.py	2007-07-11 16:42:37 +0000
+++ b/bzrlib/tests/revisionstore_implementations/test_all.py	2007-08-22 22:28:07 +0000
@@ -62,11 +62,18 @@
         # has of None -> True
         self.assertTrue(self.store.has_revision_id('null:', self.transaction))
 
+    def test_get_revision_missing(self):
+        # get_revision('B') -> raises NoSuchRevision
+        self.assertRaises(errors.NoSuchRevision,
+                          self.store.get_revision,
+                          'B',
+                          self.transaction)
+
     def test_get_revision_none(self):
         # get_revision(None) -> raises NoSuchRevision
         self.assertRaises(errors.NoSuchRevision,
                           self.store.get_revision,
-                          'B',
+                          None,
                           self.transaction)
 
     def test_add_signature_text_missing(self):



More information about the bazaar-commits mailing list