[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 3/3] Remove the old suite() crud from kickstart testing, python-nose work differenlty



---
 tests/kickstart_test/commands_test.py |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/tests/kickstart_test/commands_test.py b/tests/kickstart_test/commands_test.py
index ef33bba..f0d5187 100644
--- a/tests/kickstart_test/commands_test.py
+++ b/tests/kickstart_test/commands_test.py
@@ -65,7 +65,7 @@ class CommandVersionTestCase(TestCase):
             self.assertEqual(baseClass.__name__, pykickstartClass.__name__)
 
 # Do the same thing as CommandVersionTestCase, but for data objects.
-class DataVersionTestCase(unittest.TestCase):
+class DataVersionTestCase(TestCase):
     def setUp(self):
         import pyanaconda.kickstart
         import pykickstart.version
@@ -83,11 +83,4 @@ class DataVersionTestCase(unittest.TestCase):
 
             self.assertEqual(baseClass.__name__, pykickstartClass.__name__)
             
-def suite():
-    suite = unittest.TestSuite()
-    suite.addTest(CommandVersionTestCase())
-    suite.addTest(DataVersionTestCase())
-    return suite
 
-s = suite()
-unittest.TextTestRunner(verbosity=2).run(s)
-- 
1.6.6.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]