Rev 450: Make sure a correct exception is raised if get_revision_paths() in http://people.samba.org/bzr/jelmer/bzr-svn/bzr.dev
Jelmer Vernooij
jelmer at samba.org
Wed May 16 10:12:13 BST 2007
At http://people.samba.org/bzr/jelmer/bzr-svn/bzr.dev
------------------------------------------------------------
revno: 450
revision-id: jelmer at samba.org-20070516091151-5cnstft757privhr
parent: jelmer at samba.org-20070515225541-s3qdlzaz6tzdl99o
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: main
timestamp: Wed 2007-05-16 10:11:51 +0100
message:
Make sure a correct exception is raised if get_revision_paths()
receives an invalid revision number.
modified:
tests/test_logwalker.py test_logwalker.py-20060622141944-pkocc3rj8g62ukbi-1
=== modified file 'tests/test_logwalker.py'
--- a/tests/test_logwalker.py 2007-03-25 18:41:40 +0000
+++ b/tests/test_logwalker.py 2007-05-16 09:11:51 +0000
@@ -56,6 +56,11 @@
walker = logwalker.LogWalker(SvnRaTransport(repos_url))
self.assertEqual({'': ('A', None, -1)}, walker.get_revision_paths(0))
+ def test_get_revision_paths_invalid(self):
+ repos_url = self.make_client("a", "dc")
+ walker = logwalker.LogWalker(SvnRaTransport(repos_url))
+ self.assertRaises(NoSuchRevision, lambda: walker.get_revision_paths(42))
+
def test_get_branch_invalid_revision(self):
repos_url = self.make_client("a", "dc")
walker = logwalker.LogWalker(transport=SvnRaTransport(repos_url))
More information about the bazaar-commits
mailing list