diff tests/test_svnwrap.py @ 666:192a3f65837a

svnwrap: remove dead code Some member functions of SubversionRepo were unused, and removing them frees other wrappers from adding possibly incorrect implementations of them. Two methods, `tags_at_rev' and `_get_copy_source' were completely unused and could easily be removed. Another two methods, `branches' and `tags' had explicit tests for them but weren't used in the code proper; they were removed too. The START property was unnecessary and could be removed with a tiny refactoring. No functionality change.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 11 Aug 2010 19:57:35 +0200
parents d2ef7220a079
children e9af7eba88db
line wrap: on
line diff
--- a/tests/test_svnwrap.py
+++ b/tests/test_svnwrap.py
@@ -53,18 +53,6 @@ class TestBasicRepoLayout(unittest.TestC
         revs = list(self.repo.revisions(start=3))
         self.assertEqual(len(revs), 4)
 
-
-    def test_branches(self):
-        self.assertEqual(self.repo.branches.keys(), ['crazy', 'more_crazy'])
-        self.assertEqual(self.repo.branches['crazy'], ('trunk', 2, 4))
-        self.assertEqual(self.repo.branches['more_crazy'], ('trunk', 5, 7))
-
-
-    def test_tags(self):
-        tags = self.repo.tags
-        self.assertEqual(tags.keys(), ['rev1'])
-        self.assertEqual(tags['rev1'], ('trunk', 2))
-
 class TestRootAsSubdirOfRepo(TestBasicRepoLayout):
     def setUp(self):
         self.tmpdir = tempfile.mkdtemp('svnwrap_test')