changeset 700:04b3f476e2c3

test_push_dirs.py: activate tests that were previously overlooked The existing tests were rather weird, so they were cleaned up a bit while at it.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Thu, 23 Sep 2010 15:27:08 +0200
parents 181ec1929b2a
children 3b8088de027d
files tests/test_push_dirs.py
diffstat 1 files changed, 6 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_push_dirs.py
+++ b/tests/test_push_dirs.py
@@ -3,13 +3,9 @@ import test_util
 import unittest
 
 class TestPushDirectories(test_util.TestBase):
-    def setUp(self):
-        test_util.TestBase.setUp(self)
-        test_util.load_fixture_and_fetch('emptyrepo.svndump',
-                                         self.repo_path,
-                                         self.wc_path)
-
     def test_push_dirs(self):
+        self._load_fixture_and_fetch('emptyrepo.svndump')
+
         changes = [
             # Single file in single directory
             ('d1/a', 'd1/a', 'a\n'),
@@ -49,13 +45,9 @@ class TestPushDirectories(test_util.Test
         self.assertEqual(self.svnls('trunk'),
                          ['d2', 'd2/b', 'd31', 'd31/d32', 'd31/d32/a', ])
 
-
-class TestPushDirsNotAtRoot(test_util.TestBase):
     def test_push_new_dir_project_root_not_repo_root(self):
-        test_util.load_fixture_and_fetch('fetch_missing_files_subdir.svndump',
-                                         self.repo_path,
-                                         self.wc_path,
-                                         subdir='foo')
+        self._load_fixture_and_fetch('fetch_missing_files_subdir.svndump',
+                                     subdir='foo')
         changes = [('magic_new/a', 'magic_new/a', 'ohai', ),
                    ]
         self.commitchanges(changes)
@@ -70,10 +62,8 @@ class TestPushDirsNotAtRoot(test_util.Te
                                                    'magic_new/a'])
 
     def test_push_new_file_existing_dir_root_not_repo_root(self):
-        test_util.load_fixture_and_fetch('empty_dir_in_trunk_not_repo_root.svndump',
-                                         self.repo_path,
-                                         self.wc_path,
-                                         subdir='project')
+        self._load_fixture_and_fetch('empty_dir_in_trunk_not_repo_root.svndump',
+                                     subdir='project')
         changes = [('narf/a', 'narf/a', 'ohai', ),
                    ]
         self.commitchanges(changes)