diff tests/test_single_dir_clone.py @ 871:51fd75ae62b9

test_util: pass repo_path to svnpropget(), turn into a function
author Patrick Mezard <patrick@mezard.eu>
date Thu, 19 Apr 2012 18:29:31 +0200
parents db3a651494f9
children c6388ed0ec0a
line wrap: on
line diff
--- a/tests/test_single_dir_clone.py
+++ b/tests/test_single_dir_clone.py
@@ -111,12 +111,14 @@ class TestSingleDir(test_util.TestBase):
         self.pushrevisions()
         self.assertTrue('adding_file' in test_util.svnls(repo_path, ''))
         self.assertEqual('application/octet-stream',
-                         self.svnpropget('adding_binary', 'svn:mime-type'))
+                         test_util.svnpropget(repo_path, 'adding_binary',
+                                              'svn:mime-type'))
         # Now add another commit and test mime-type being reset
         changes = [('adding_binary', 'adding_binary', 'no longer binary')]
         self.commitchanges(changes)
         self.pushrevisions()
-        self.assertEqual('', self.svnpropget('adding_binary', 'svn:mime-type'))
+        self.assertEqual('', test_util.svnpropget(repo_path, 'adding_binary',
+                                                  'svn:mime-type'))
 
     def test_push_single_dir_at_subdir(self):
         repo = self._load_fixture_and_fetch('branch_from_tag.svndump',