summaryrefslogtreecommitdiffstats
path: root/tests/storage/devicelibs/swap.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storage/devicelibs/swap.py')
-rw-r--r--tests/storage/devicelibs/swap.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/storage/devicelibs/swap.py b/tests/storage/devicelibs/swap.py
index b1e9bd3b5..b99d1f67c 100644
--- a/tests/storage/devicelibs/swap.py
+++ b/tests/storage/devicelibs/swap.py
@@ -2,9 +2,9 @@ import baseclass
import unittest
import storage.devicelibs.swap as swap
-class TestSwap(baseclass.TestDevicelibs):
+class SwapTestCase(baseclass.DevicelibsTestCase):
- def runTest(self):
+ def testSwap(self):
##
## mkswap
##
@@ -58,6 +58,9 @@ class TestSwap(baseclass.TestDevicelibs):
self.assertRaises(swap.SwapError, swap.swapoff, self._LOOP_DEV0)
+def suite():
+ return unittest.TestLoader().loadTestsFromTestCase(SwapTestCase)
+
+
if __name__ == "__main__":
- suite = unittest.TestLoader().loadTestsFromTestCase(TestSwap)
- unittest.TextTestRunner(verbosity=2).run(suite)
+ unittest.main()