You can actually just put the return value in these definitions:

`@patch.object(instructor.views.api, 'anonymous_id_for_user', Mock(return_value=41))`