[blivet:master 6/9] Omit unnecessary class hierarchy related boilerplate.
mulhern
amulhern at redhat.com
Mon Aug 4 15:56:53 UTC 2014
The setUp() method in the superclass is called regardless.
Signed-off-by: mulhern <amulhern at redhat.com>
---
tests/formats_test/labeling_test.py | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/tests/formats_test/labeling_test.py b/tests/formats_test/labeling_test.py
index e19d759..e4b237d 100755
--- a/tests/formats_test/labeling_test.py
+++ b/tests/formats_test/labeling_test.py
@@ -94,51 +94,30 @@ class XFSTestCase(fslabeling.CompleteLabelingAsRoot):
_fs_class = property(lambda s: fs.XFS)
_invalid_label = property(lambda s: "root filesystem")
- def setUp(self):
- super(XFSTestCase, self).setUp()
-
class FATFSTestCase(fslabeling.CompleteLabelingAsRoot):
_fs_class = property(lambda s: fs.FATFS)
_invalid_label = property(lambda s: "root___filesystem")
- def setUp(self):
- super(FATFSTestCase, self).setUp()
-
class Ext2FSTestCase(fslabeling.CompleteLabelingAsRoot):
_fs_class = property(lambda s: fs.Ext2FS)
_invalid_label = property(lambda s: "root___filesystem")
- def setUp(self):
- super(Ext2FSTestCase, self).setUp()
-
class JFSTestCase(fslabeling.LabelingWithRelabeling):
_fs_class = property(lambda s: fs.JFS)
_invalid_label = property(lambda s: "root___filesystem")
- def setUp(self):
- super(JFSTestCase, self).setUp()
-
class ReiserFSTestCase(fslabeling.LabelingWithRelabeling):
_fs_class = property(lambda s: fs.ReiserFS)
_invalid_label = property(lambda s: "root___filesystem")
- def setUp(self):
- super(ReiserFSTestCase, self).setUp()
-
class HFSTestCase(fslabeling.LabelingAsRoot):
_fs_class = property(lambda s: fs.HFS)
_invalid_label = property(lambda s: "n" * 28)
- def setUp(self):
- super(HFSTestCase, self).setUp()
-
class HFSPlusTestCase(fslabeling.LabelingAsRoot):
_fs_class = property(lambda s: fs.HFSPlus)
_invalid_label = property(lambda s: "n" * 129)
- def setUp(self):
- super(HFSPlusTestCase, self).setUp()
-
class LabelingSwapSpaceTestCase(loopbackedtestcase.LoopBackedTestCase):
def testLabeling(self):
--
1.9.3
More information about the anaconda-patches
mailing list