ID EN
Unittest

setUp

Python 3.11

Method called to prepare the test fixture. This is called immediately before calling the test method; other than AssertionError or SkipTest, any exception raised by this method will be considered an error rather than a test failure. The default implementation does nothing.

Syntax

PYTHON
setUp()

See Also

AssertionError SkipTest