unittest.TestSuite.
  • References/Python/Python/Development Tools

__iter__() Tests grouped by a TestSuite are always accessed by iteration. Subclasses can lazily provide tests by

2025-01-10 15:47:30
unittest.TestCase.subTest()
  • References/Python/Python/Development Tools

subTest(msg=None, **params) Return a context manager which executes the enclosed code block as a subtest. msg and params

2025-01-10 15:47:30
unittest.TestLoader.loadTestsFromTestCase()
  • References/Python/Python/Development Tools

loadTestsFromTestCase(testCaseClass) Return a suite of all tests cases contained in the TestCase-derived

2025-01-10 15:47:30
test.support.run_unittest()
  • References/Python/Python/Development Tools

test.support.run_unittest(*classes) Execute

2025-01-10 15:47:30
unittest.TestSuite.addTest()
  • References/Python/Python/Development Tools

addTest(test) Add a TestCase or TestSuite to the suite.

2025-01-10 15:47:30
test.support.EnvironmentVarGuard.unset()
  • References/Python/Python/Development Tools

EnvironmentVarGuard.unset(envvar) Temporarily unset the environment variable envvar.

2025-01-10 15:47:30
unittest.TextTestResult
  • References/Python/Python/Development Tools

class unittest.TextTestResult(stream, descriptions, verbosity) A concrete implementation of TestResult used by

2025-01-10 15:47:30
unittest.TestResult.skipped
  • References/Python/Python/Development Tools

skipped A list containing 2-tuples of TestCase instances and strings holding the reason for skipping the test.

2025-01-10 15:47:30
typing.AnyStr
  • References/Python/Python/Development Tools

class typing.AnyStr AnyStr is a type variable defined as AnyStr = TypeVar('AnyStr', str, bytes).

2025-01-10 15:47:30
unittest.TestCase.assertRaises()
  • References/Python/Python/Development Tools

assertRaises(exception, callable, *args, **kwds) assertRaises(exception, msg=None) Test that an exception is raised

2025-01-10 15:47:30