(self)
| 494 | assert_('axis' in signature.parameters) |
| 495 | |
| 496 | def test_override_sum(self): |
| 497 | MyArray, implements = _new_duck_type_and_implements() |
| 498 | |
| 499 | @implements(np.sum) |
| 500 | def _(array): |
| 501 | return 'yes' |
| 502 | |
| 503 | assert_equal(np.sum(MyArray()), 'yes') |
| 504 | |
| 505 | def test_sum_on_mock_array(self): |
| 506 |
nothing calls this directly
no test coverage detected