[CMF-checkins] SVN: CMF/trunk/CMFCore/tests/base/utils.py - removed
obsolete function
Yvo Schubbe
y.2006_ at wcm-solutions.de
Wed Oct 11 11:57:26 EDT 2006
Log message for revision 70603:
- removed obsolete function
Changed:
U CMF/trunk/CMFCore/tests/base/utils.py
-=-
Modified: CMF/trunk/CMFCore/tests/base/utils.py
===================================================================
--- CMF/trunk/CMFCore/tests/base/utils.py 2006-10-11 11:13:03 UTC (rev 70602)
+++ CMF/trunk/CMFCore/tests/base/utils.py 2006-10-11 15:57:25 UTC (rev 70603)
@@ -15,33 +15,6 @@
$Id$
"""
-from unittest import TestSuite
-
-from sys import modules
-
-
-def build_test_suite(package_name, module_names, required=1,
- suite_name='test_suite'):
- """
- Utlitity for building a test suite from a package name
- and a list of modules.
-
- If required is false, then ImportErrors will simply result
- in that module's tests not being added to the returned
- suite.
- """
-
- suite = TestSuite()
- try:
- for name in module_names:
- the_name = package_name+'.'+name
- __import__(the_name,globals(),locals())
- suite.addTest( getattr(modules[the_name], suite_name)() )
- except ImportError:
- if required:
- raise
- return suite
-
def has_path( catalog, path ):
"""
Verify that catalog has an object at path.
More information about the CMF-checkins
mailing list