def METHOD_NAME(mock_request):
    post_mock = Mock(side_effect=Timeout())
    with patch("requests.post", post_mock):
        with pytest.raises(exceptions.OAuth2AccessTokenRequestError):
            get_access_token(mock_request, CODE_GRANT)
        post_mock.assert_called_once()