Rev 1359: More get_locations tests. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4
Jelmer Vernooij
jelmer at samba.org
Thu Jun 26 20:34:03 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4
------------------------------------------------------------
revno: 1359
revision-id: jelmer at samba.org-20080626193403-gzvglk3obehulz09
parent: jelmer at samba.org-20080626163727-us341f67teparqhj
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Thu 2008-06-26 21:34:03 +0200
message:
More 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 16:28:08 +0000
+++ b/tests/test_ra.py 2008-06-26 19:34:03 +0000
@@ -152,8 +152,21 @@
cb.add_dir("bla", "bar", 1)
cb.close()
+ cb = self.commit_editor()
+ cb.delete("bar")
+ cb.close()
+
self.assertEquals({1: "/bar", 2: "/bla"},
- self.ra.get_locations("bla", 1, [1,2]))
+ self.ra.get_locations("bla", 2, [1,2]))
+
+ self.assertEquals({1: "/bar", 2: "/bar"},
+ self.ra.get_locations("bar", 1, [1,2]))
+
+ self.assertEquals({1: "/bar", 2: "/bar"},
+ self.ra.get_locations("bar", 2, [1,2]))
+
+ self.assertEquals({1: "/bar", 2: "/bla", 3: "/bla"},
+ self.ra.get_locations("bla", 3, [1,2,3]))
class AuthTests(TestCase):
def test_not_registered(self):
More information about the bazaar-commits
mailing list