Rev 1264: Merge repos.so tests. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4
Jelmer Vernooij
jelmer at samba.org
Sun Jun 22 09:17:16 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4
------------------------------------------------------------
revno: 1264
revision-id: jelmer at samba.org-20080622081715-rphnf9fi49covcz1
parent: jelmer at samba.org-20080622081619-9hz2e1eq00hbgnex
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sun 2008-06-22 10:17:15 +0200
message:
Merge repos.so tests.
added:
tests/test_repos.py test_repos.py-20080603030558-86ewiakm2z5y9x29-1
renamed:
tests/test_repos.py => tests/test_repository.py test_repos.py-20060508151940-ddc49a59257ca712
modified:
tests/__init__.py __init__.py-20060508151940-e9f4d914801a2535
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py 2008-06-22 08:16:19 +0000
+++ b/tests/__init__.py 2008-06-22 08:17:15 +0000
@@ -383,6 +383,7 @@
'test_push',
'test_radir',
'test_repos',
+ 'test_repository',
'test_revids',
'test_revspec',
'test_scheme',
=== added file 'tests/test_repos.py'
--- a/tests/test_repos.py 1970-01-01 00:00:00 +0000
+++ b/tests/test_repos.py 2008-06-22 08:17:15 +0000
@@ -0,0 +1,35 @@
+# 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 rpeository library tests."""
+
+import os
+from bzrlib.plugins.svn import repos
+from bzrlib.tests import TestCaseInTempDir
+
+class TestClient(TestCaseInTempDir):
+ def setUp(self):
+ super(TestClient, self).setUp()
+
+ def test_create(self):
+ repos.create(os.path.join(self.test_dir, "foo"))
+
+ def test_open(self):
+ repos.create(os.path.join(self.test_dir, "foo"))
+ repos.Repository("foo")
+
+ def test_uuid(self):
+ repos.create(os.path.join(self.test_dir, "foo"))
+ self.assertIsInstance(repos.Repository("foo").fs().get_uuid(), str)
=== renamed file 'tests/test_repos.py' => 'tests/test_repository.py'
More information about the bazaar-commits
mailing list