MCPcopy Index your code
hub / github.com/pyinvoke/invoke / equality_testing_false_for_non_task_objects

Method equality_testing_false_for_non_task_objects

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

Source from the content-addressed store, hash-verified

189 assert t1 != t3
190
191 def equality_testing_false_for_non_task_objects(self):
192 t = Task(_func, name="foo")
193 # No name attribute at all
194 assert t != object()
195
196 # Name attr, but not a Task
197 class Named:
198 name = "foo"
199
200 assert t != Named()
201
202 class function_like_behavior:
203 # Things that help them eg show up in autodoc easier

Callers

nothing calls this directly

Calls 2

TaskClass · 0.90
NamedClass · 0.85

Tested by

no test coverage detected