Rev 2807: Reproduce #131396 and #128076 in the test suite. in file:///v/home/vila/src/bugs/128076/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Mon Sep 10 10:13:52 BST 2007
At file:///v/home/vila/src/bugs/128076/
------------------------------------------------------------
revno: 2807
revision-id: v.ladeuil+lp at free.fr-20070910091350-mnrhuokhmj2vxim0
parent: pqm at pqm.ubuntu.com-20070910054843-evbkt0bivtk6tpqu
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 128076
timestamp: Mon 2007-09-10 11:13:50 +0200
message:
Reproduce #131396 and #128076 in the test suite.
added:
bzrlib/tests/commands/test_update.py test_update.py-20070910091045-8uyp8v73j926l1g2-1
modified:
bzrlib/tests/commands/__init__.py __init__.py-20070520095518-ecfl8531fxgjeycj-1
-------------- next part --------------
=== added file 'bzrlib/tests/commands/test_update.py'
--- a/bzrlib/tests/commands/test_update.py 1970-01-01 00:00:00 +0000
+++ b/bzrlib/tests/commands/test_update.py 2007-09-10 09:13:50 +0000
@@ -0,0 +1,40 @@
+# Copyright (C) 2007 Canonical Ltd
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+from bzrlib import builtins
+from bzrlib.tests.transport_util import TestCaseWithConnectionHookedTransport
+
+
+class TestUpdate(TestCaseWithConnectionHookedTransport):
+
+ def test_update(self):
+ wt1 = self.make_branch_and_tree('branch1')
+ wt2 = self.make_branch_and_tree('branch2')
+ wt2.pull(wt1.branch)
+
+ wt1.commit('empty commit')
+ wt2.commit('empty commit too')
+
+ self.install_hooks()
+
+ bind = builtins.cmd_bind()
+ bind.run(location=self.get_url('branch1'))
+
+ update = builtins.cmd_update()
+ update.run()
+ self.assertEquals(1, len(self.connections))
+
=== modified file 'bzrlib/tests/commands/__init__.py'
--- a/bzrlib/tests/commands/__init__.py 2007-07-15 11:17:19 +0000
+++ b/bzrlib/tests/commands/__init__.py 2007-09-10 09:13:50 +0000
@@ -35,6 +35,7 @@
'bzrlib.tests.commands.test_missing',
'bzrlib.tests.commands.test_pull',
'bzrlib.tests.commands.test_push',
+ 'bzrlib.tests.commands.test_update',
]
loader = TestLoader()
suite = loader.loadTestsFromModuleNames(testmod_names)
More information about the bazaar-commits
mailing list