MCPcopy Index your code
hub / github.com/python/cpython / _subDescription

Method _subDescription

Lib/unittest/case.py:1607–1616  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1605 raise NotImplementedError("subtests cannot be run directly")
1606
1607 def _subDescription(self):
1608 parts = []
1609 if self._message is not _subtest_msg_sentinel:
1610 parts.append("[{}]".format(self._message))
1611 if self.params:
1612 params_desc = ', '.join(
1613 "{}={!r}".format(k, v)
1614 for (k, v) in self.params.items())
1615 parts.append("({})".format(params_desc))
1616 return " ".join(parts) or '(<subtest>)'
1617
1618 def id(self):
1619 return "{} {}".format(self.test_case.id(), self._subDescription())

Callers 2

idMethod · 0.95
__str__Method · 0.95

Calls 4

appendMethod · 0.45
formatMethod · 0.45
joinMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected