()
| 275 | |
| 276 | |
| 277 | def test_method_caller(): |
| 278 | a = [1, 2, 3, 3, 3] |
| 279 | f = methodcaller("count") |
| 280 | assert f(a, 3) == a.count(3) |
| 281 | assert methodcaller("count") is f |
| 282 | assert M.count is f |
| 283 | assert pickle.loads(pickle.dumps(f)) is f |
| 284 | assert "count" in dir(M) |
| 285 | |
| 286 | assert "count" in str(methodcaller("count")) |
| 287 | assert "count" in repr(methodcaller("count")) |
| 288 | |
| 289 | |
| 290 | def test_skip_doctest(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…