(self)
| 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 |