[TIP] How to use wsgi_intercept & httplib ?

Olemis Lang olemis at gmail.com
Wed Apr 7 08:07:52 PDT 2010


On Wed, Apr 7, 2010 at 10:58 AM, Olemis Lang <olemis at gmail.com> wrote:
> On Wed, Apr 7, 2010 at 10:48 AM, Olemis Lang <olemis at gmail.com> wrote:
>> On Wed, Apr 7, 2010 at 10:37 AM, C. Titus Brown <ctb at msu.edu> wrote:
>>> On Wed, Apr 07, 2010 at 09:49:26AM -0400, Olemis Lang wrote:
>>>> I read Grig's article [1]_ where he mentions that twill's
>>>> `wsgi_intercept` mocks httplib under the hood. I tried to use it
>>>> directly and something is not working .
>>>
>>> Hi, Olemis,
>>>
>>
>> :o)
>>
>>> the twill 'add_wsgi_intercept' function installs the handler for twill
>>> only.  You need to use a different wsgi_intercept function; see the
>>> example on the main page of
>>>
>>>        http://code.google.com/p/wsgi-intercept/
>>>
>>
>> I knew ! Something 's hiding my local thingies !
>>
>> :o)
>>
>> Seriously : Thnx ! I'll take a look ...
>>
>
> I'm just curious :
>
> Q:
>  - Does it handle httplib | urllib (i.e. version < 2) ?
>

Answer:
Seems so ... that's what happens when I put in practice my bad habits
of skipping `Introduction` sections

:-S

Thnx !

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:



More information about the testing-in-python mailing list