ID EN
Unittest

shortDescription

Python 3.11

Returns a description of the test, or None if no description has been provided. The default implementation of this method returns the first line of the test method’s docstring, if available, or None.

Syntax

PYTHON
shortDescription()

See Also

TextTestResult