unittest.TestCase.tearDownClass()

tearDownClass()

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

@classmethod
def tearDownClass(cls):
    ...

See Class and Module Fixtures for more details.

New in version 3.2.

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

Please login to continue.