'Returns both the test method name and first line of its docstring.
If no docstring is given, only returns the method name.
This method overrides unittest.TestCase.shortDescription(), which
only returns the first line of the docstring, obscuring the name
of the test upon failure.'

def shortDescription(self):

    desc = str(self)
    doc_first_line = None
    if self._testMethodDoc:
        doc_first_line = self._testMethodDoc.split('\n')[0].strip()
    if doc_first_line:
        desc = '\n'.join((desc, doc_first_line))
    return desc
