PyDocs

Nav

Development Tools

TestCase.shortDescription

  • TestCase.shortDescription()
Returns a one-line description of the test, or None if no
description has been provided.

The default implementation of this method returns the first line of
the specified test method's docstring.
Changed in 3.1
  • 3.1: In 3.1 this was changed to add the test name to the short description even in the presence of a docstring. This caused compatibility issues with unittest extensions and adding the test name was moved to the TextTestResult in Python 3.2.
0 Examples
No examples for unittest/TestCase.shortDescription.
See Also
No see-alsos for unittest/TestCase.shortDescription
0 Notes
No notes for TestCase.shortDescription