changeset 1065:8b6fb32b001e

test_fetch_symlinks: use stupid mode metaclass
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 09 Aug 2013 23:45:56 +0200
parents dc516f85b6c3
children 825fd4c0396c
files tests/test_fetch_symlinks.py
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_fetch_symlinks.py
+++ b/tests/test_fetch_symlinks.py
@@ -3,8 +3,10 @@ import test_util
 import unittest
 
 class TestFetchSymlinks(test_util.TestBase):
-    def test_symlinks(self, stupid=False):
-        repo = self._load_fixture_and_fetch('symlinks.svndump', stupid=stupid)
+    stupid_mode_tests = True
+
+    def test_symlinks(self):
+        repo = self._load_fixture_and_fetch('symlinks.svndump')
         # Check symlinks throughout history
         links = {
             0: {
@@ -47,10 +49,9 @@ class TestFetchSymlinks(test_util.TestBa
             for f in links[rev]:
                 self.assertTrue(f in ctx)
 
-    def test_symlinks_stupid(self):
-        self.test_symlinks(True)
-
 class TestMergeSpecial(test_util.TestBase):
+    stupid_mode_tests = True
+
     def test_special(self):
         repo = self._load_fixture_and_fetch('addspecial.svndump',
                                             subdir='trunk')