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

Method equality_testing

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

Source from the content-addressed store, hash-verified

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")
186 t2 = Task(_func, name="foo")
187 assert t1 == t2
188 t3 = Task(_func, name="bar")
189 assert t1 != t3
190
191 def equality_testing_false_for_non_task_objects(self):
192 t = Task(_func, name="foo")

Callers

nothing calls this directly

Calls 1

TaskClass · 0.90

Tested by

no test coverage detected