Rev 1267: merge tests for client.so in http://people.samba.org/bzr/jelmer/bzr-svn/0.4
Jelmer Vernooij
jelmer at samba.org
Sun Jun 22 09:51:57 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4
------------------------------------------------------------
revno: 1267
revision-id: jelmer at samba.org-20080622085156-0i0l7dprgs9flztq
parent: jelmer at samba.org-20080622084553-tr8u5z31hd8er3jv
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sun 2008-06-22 10:51:56 +0200
message:
merge tests for client.so
added:
tests/test_client.py test_client.py-20080603021344-lmgexez0yoyp9b1s-1
modified:
tests/__init__.py __init__.py-20060508151940-e9f4d914801a2535
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py 2008-06-22 08:31:12 +0000
+++ b/tests/__init__.py 2008-06-22 08:51:56 +0000
@@ -371,6 +371,7 @@
'test_branchprops',
'test_changes',
'test_checkout',
+ 'test_client',
'test_commit',
'test_config',
'test_convert',
=== added file 'tests/test_client.py'
--- a/tests/test_client.py 1970-01-01 00:00:00 +0000
+++ b/tests/test_client.py 2008-06-22 08:51:56 +0000
@@ -0,0 +1,30 @@
+# Copyright (C) 2005-2007 Jelmer Vernooij <jelmer at samba.org>
+
+# 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 3 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, see <http://www.gnu.org/licenses/>.
+
+"""Subversion client library tests."""
+
+from bzrlib.tests import TestCase
+from bzrlib.plugins.svn import client
+from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+
+class TestClient(TestCaseWithSubversionRepository):
+ def setUp(self):
+ super(TestClient, self).setUp()
+ self.repos_url = self.make_client("d", "dc")
+ self.client = client.Client()
+
+ def test_add(self):
+ self.build_tree({"dc/foo": None})
+ self.client.add("dc/foo")
More information about the bazaar-commits
mailing list