Might also consider not mocking the task, but mocking `tasks.basket` instead and testing for `basket.subscribe` and/or `request` being called with the right args. That way you could also use `mock.side_effect` to make it throw an exception and test your failure paths, though those are fairly simple so far..