Rev 1306: Fix more tests. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4
Jelmer Vernooij
jelmer at samba.org
Mon Jun 23 03:56:50 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4
------------------------------------------------------------
revno: 1306
revision-id: jelmer at samba.org-20080623025649-reunkm3f4v0uiqr0
parent: jelmer at samba.org-20080623024242-3z8y4mzt439rog6s
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Mon 2008-06-23 04:56:49 +0200
message:
Fix more tests.
modified:
tests/test_fetch.py test_fetch.py-20070624210302-luvgwjmlfysk5qeq-1
tests/test_tree.py test_tree.py-20070103204350-pr8nupes7e5sd2wr-1
=== modified file 'tests/test_fetch.py'
--- a/tests/test_fetch.py 2008-06-23 02:40:47 +0000
+++ b/tests/test_fetch.py 2008-06-23 02:56:49 +0000
@@ -265,7 +265,7 @@
dc.close()
dc = self.get_commit_editor(repos_url)
- trunk = dc.add_dir("trunk")
+ trunk = dc.open_dir("trunk")
trunk.add_file(u'trunk/IöC/bar'.encode("utf-8")).modify("more data")
dc.close()
@@ -300,14 +300,13 @@
dc = self.get_commit_editor(repos_url)
trunk = dc.open_dir("trunk")
dc.open_file(u"trunk/â¬\x2c".encode("utf-8")).modify("bar")
- revno = dc.close()
+ dc.close()
oldrepos = Repository.open(repos_url)
set_branching_scheme(oldrepos, TrunkBranchingScheme(0))
dir = BzrDir.create("f", format.get_rich_root_format())
newrepos = dir.create_repository()
oldrepos.copy_content_into(newrepos)
- self.assertEquals(2, revno)
def test_fetch_delete(self):
repos_url = self.make_client('d', 'dc')
=== modified file 'tests/test_tree.py'
--- a/tests/test_tree.py 2008-06-23 02:23:10 +0000
+++ b/tests/test_tree.py 2008-06-23 02:56:49 +0000
@@ -35,8 +35,8 @@
repos_url = self.make_client("d", "dc")
dc = self.get_commit_editor(repos_url)
- f = dc.add_file("file").modify("x")
- f.modify()
+ f = dc.add_file("file")
+ f.modify("x")
f.change_prop("svn:executable", "*")
dc.close()
More information about the bazaar-commits
mailing list