Ejemplo n.º 1
0
def _test_name(test):
    """
    Retrieve the name of the given test.

    :argument TestCase test: a test case instance

    """

    return ".".join(
        (fully_qualified_name(test.__class__), test._testMethodName),
    )
Ejemplo n.º 2
0
 def test_skipped(self, test, reason):
     self._after.extend(
         [
             "\n",
             "=" * self.line_width,
             "\n",
             self.SKIPPED,
             "\n",
             reason,
             "\n",
             fully_qualified_name(test.__class__),
             ".",
             test._testMethodName,
         ],
     )
     return self.format_line(test, self._skipped)