def METHOD_NAME(request_body, mocker):
    handler = RedirectHandlerFactory('all', False)
    inst = handler()
    req = urllib_request.Request(
        'https://ansible.com/',
        'POST'
    )
    req_mock = mocker.patch('ansible.module_utils.urls.RequestWithMethod')
    inst.redirect_request(req, request_body, 301, '301 Moved Permanently', {}, 'https://docs.ansible.com/')
    req_mock.assert_called_once_with('https://docs.ansible.com/', data=None, headers={}, method='GET', origin_req_host='ansible.com', unverifiable=True)