Rev 1355: Fix ra.get_locations() tests. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4
Jelmer Vernooij
jelmer at samba.org
Thu Jun 26 17:28:08 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4
------------------------------------------------------------
revno: 1355
revision-id: jelmer at samba.org-20080626162808-4hzmtuouspyl1eho
parent: jelmer at samba.org-20080626162742-u11ccsf6jfn13w82
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Thu 2008-06-26 18:28:08 +0200
message:
Fix ra.get_locations() tests.
modified:
tests/test_ra.py test_ra.py-20080313141743-uzsm7ejitrlqone5-1
=== modified file 'tests/test_ra.py'
--- a/tests/test_ra.py 2008-06-26 12:47:38 +0000
+++ b/tests/test_ra.py 2008-06-26 16:28:08 +0000
@@ -141,7 +141,7 @@
self.assertEquals("/bar", rets[1][0])
def test_get_locations_root(self):
- self.assertEquals({0: "/"}, ra.get_locations("", 0, [0]))
+ self.assertEquals({0: "/"}, self.ra.get_locations("", 0, [0]))
def test_get_locations_dir(self):
cb = self.commit_editor()
@@ -152,7 +152,8 @@
cb.add_dir("bla", "bar", 1)
cb.close()
- self.assertEquals({1: "/bar", 2: "/bla"}, ra.get_locations("bla", 1, [1,2]))
+ self.assertEquals({1: "/bar", 2: "/bla"},
+ self.ra.get_locations("bla", 1, [1,2]))
class AuthTests(TestCase):
def test_not_registered(self):
More information about the bazaar-commits
mailing list