Rev 1263: Import wc.so tests. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4

Jelmer Vernooij jelmer at samba.org
Sun Jun 22 09:16:20 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/0.4

------------------------------------------------------------
revno: 1263
revision-id: jelmer at samba.org-20080622081619-9hz2e1eq00hbgnex
parent: jelmer at samba.org-20080622081455-pyq63uo7pxs1u85v
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sun 2008-06-22 10:16:19 +0200
message:
  Import wc.so tests.
added:
  tests/test_wc.py               test_wc.py-20080313142315-woibd1cdv4s2lr7o-1
modified:
  tests/__init__.py              __init__.py-20060508151940-e9f4d914801a2535
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py	2008-06-22 08:14:55 +0000
+++ b/tests/__init__.py	2008-06-22 08:16:19 +0000
@@ -390,6 +390,7 @@
             'test_transport',
             'test_tree',
             'test_upgrade',
+            'test_wc',
             'test_workingtree',
             'test_blackbox']
     suite.addTest(loader.loadTestsFromModuleNames(["%s.%s" % (__name__, i) for i in testmod_names]))

=== added file 'tests/test_wc.py'
--- a/tests/test_wc.py	1970-01-01 00:00:00 +0000
+++ b/tests/test_wc.py	2008-06-22 08:16:19 +0000
@@ -0,0 +1,39 @@
+# 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 ra library tests."""
+
+from bzrlib.tests import TestCase
+from bzrlib.plugins.svn import wc
+
+class VersionTest(TestCase):
+    def test_version_length(self):
+        self.assertEquals(4, len(wc.version()))
+
+class WorkingCopyTests(TestCase):
+    def test_get_adm_dir(self):
+        self.assertEquals(".svn", wc.get_adm_dir())
+
+    def test_is_normal_prop(self):
+        self.assertTrue(wc.is_normal_prop("svn:ignore"))
+
+    def test_is_entry_prop(self):
+        self.assertTrue(wc.is_entry_prop("svn:entry:foo"))
+
+    def test_is_wc_prop(self):
+        self.assertTrue(wc.is_wc_prop("svn:wc:foo"))
+
+    def notest_get_default_ignores(self):
+        self.assertIsInstance(client.get_config().get_default_ignores(), list)




More information about the bazaar-commits mailing list