diff tests/test_fetch_symlinks.py @ 1106:5cb6c95e0283 stable

Merge default and stable so I can do stable releases again.
author Augie Fackler <raf@durin42.com>
date Tue, 11 Feb 2014 12:48:49 -0500
parents 8b6fb32b001e
children
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,20 +49,12 @@ 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')
         ctx = repo['tip']
         self.assertEqual(ctx['fnord'].flags(), 'l')
         self.assertEqual(ctx['exe'].flags(), 'x')
-
-def suite():
-    all_tests = [
-        unittest.TestLoader().loadTestsFromTestCase(TestFetchSymlinks),
-        unittest.TestLoader().loadTestsFromTestCase(TestMergeSpecial),
-        ]
-    return unittest.TestSuite(all_tests)