def loadMultipleTests(self, namespaces):
"""
Load L{csb.test.Case}s from a list of given CSB C{namespaces}.
@param namespaces: a list of test module namespaces, e.g.
('csb.test.cases.bio', 'csb.test.cases.bio.io') will
load tests from '/csb/test/cases/bio.py' and
'/csb/test/cases/bio/io.py'
@type namespaces: tuple of str
@return: a C{unittest.TestSuite} ready for the test runner
@rtype: C{unittest.TestSuite}
"""
if not csb.core.iterable(namespaces):
raise TypeError(namespaces)
return unittest.TestSuite(self.loadTests(n) for n in namespaces)
评论列表
文章目录