(self)
| 175 | |
| 176 | class 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") |