This class is responsible for loading tests according to various criteria and returning them wrapped in a Test
There are no implemented interfaces.
sortTestMethodsUsing
(type: builtin_function_or_method
)
<built-in function cmp>
suiteClass
(type: type
)
<class 'unittest.TestSuite'>
testMethodPrefix
(type:
str
)
'test'
getTestCaseNames(testCaseClass)
Return a sorted sequence of method names found within testCaseClass
loadTestsFromModule(module)
Return a suite of all tests cases contained in the given module
loadTestsFromName(name, module=None)
Return a suite of all tests cases given a string specifier.
The name may resolve either to a module, a test case class, a test method within a test case class, or a callable object which returns a TestCase or TestSuite instance.
The method optionally resolves the names relative to a given module.
loadTestsFromNames(names, module=None)
Return a suite of all tests cases found using the given sequence
of string specifiers. See loadTestsFromName()
.
loadTestsFromTestCase(testCaseClass)
Return a suite of all tests cases contained in testCaseClass
There are no known subclasses.