Rev 1052: Add some more tests for wc module. in file:///data/jelmer/bzr-svn/cext/

Jelmer Vernooij jelmer at samba.org
Mon Jun 2 21:23:55 BST 2008


At file:///data/jelmer/bzr-svn/cext/

------------------------------------------------------------
revno: 1052
revision-id: jelmer at samba.org-20080602202355-0p9vf1krh15dts0u
parent: jelmer at samba.org-20080602201547-1s9prjrm5x6hgp0h
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: cext
timestamp: Mon 2008-06-02 22:23:55 +0200
message:
  Add some more tests for wc module.
modified:
  tests/test_wc.py               test_wc.py-20080313142315-woibd1cdv4s2lr7o-1
=== modified file 'tests/test_wc.py'
--- a/tests/test_wc.py	2008-03-13 14:23:55 +0000
+++ b/tests/test_wc.py	2008-06-02 20:23:55 +0000
@@ -16,9 +16,24 @@
 """Subversion ra library tests."""
 
 from bzrlib.tests import TestCase
-import ra
+import wc
 
 class VersionTest(TestCase):
     def test_version_length(self):
-        self.assertEquals(4, len(ra.version()))
-
+        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 test_get_default_ignores(self):
+        self.assertIsInstance(wc.get_default_ignores({}), list)




More information about the bazaar-commits mailing list