MCPcopy Create free account
hub / github.com/pyinvoke/invoke / has_useful_repr

Method has_useful_repr

tests/task.py:177–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175
176class Task_:
177 def has_useful_repr(self):
178 i = repr(Task(_func))
179 assert "_func" in i, "'func' not found in {!r}".format(i)
180 e = repr(Task(_func, name="funky"))
181 assert "funky" in e, "'funky' not found in {!r}".format(e)
182 assert "_func" not in e, "'_func' unexpectedly seen in {!r}".format(e)
183
184 def equality_testing(self):
185 t1 = Task(_func, name="foo")

Callers

nothing calls this directly

Calls 2

TaskClass · 0.90
reprClass · 0.85

Tested by

no test coverage detected