tests: do not mark the entry point as static
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 20 Sep 2013 11:48:28 +0000 (14:48 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 20 Sep 2013 11:48:28 +0000 (14:48 +0300)
Remove the @staticmethod decorator, because old unittest module on Centos6 does
not recognize static entry points and does not execute tests.

Change-Id: I6d490396fb79a9b43bc7d39328b1e5eacff0446b
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
tests/test_api_base.py
tests/test_fiemap.py

index 34a745a4882011b55956f38adeff5c4dbc814b85..ca1048802680f2e9ce181289c43ab9312495da8a 100644 (file)
@@ -293,8 +293,7 @@ class TestCreateCopy(unittest.TestCase):
     function for different sparse files.
     """
 
-    @staticmethod
-    def test():
+    def test(self):
         """
         The test entry point. Executes the '_do_test()' function for files of
         different sizes, holes distribution and format.
index e9c0a150e0429141fd4674bf3d475bbe33a28d1b..47fe0fe2020cbf25cd7853fb9af69a212b8e4fcb 100644 (file)
@@ -110,8 +110,7 @@ class TestCreateCopy(unittest.TestCase):
     function for different sparse files.
     """
 
-    @staticmethod
-    def test():
+    def test(self):
         """
         The test entry point. Executes the '_do_test()' function for files of
         different sizes, holes distribution and format.