unittest.TestCase.setUpClass()

setUpClass()

A class method called before tests in an individual class run. setUpClass is called with the class as the only argument and must be decorated as a classmethod():

@classmethod
def setUpClass(cls):
    ...

See Class and Module Fixtures for more details.

New in version 3.2.

doc_python
2016-10-07 17:46:28
Comments
Leave a Comment

Please login to continue.