Re: [Zope-dev] AcceleratedHTTPCache and virtual hosting (collector 1447)

2005-12-04 Thread Dieter Maurer
Jens Vagelpohl wrote at 2005-12-3 16:08 +: ... Another thought: Maybe before doing anything else, I should make the client class used by AcceleratedHTTPCache configurable, so I can more easily get a mock in there. Something like: I like the secondary route, but I'm not sure the

Re: [Zope-dev] AcceleratedHTTPCache and virtual hosting (collector 1447)

2005-12-03 Thread Jens Vagelpohl
On 3 Dec 2005, at 15:57, Paul Winkler wrote: One thought that occurs to me is to replace httplib.HTTPConnection with a mock object of some sort that allows easy verification of its input. So we assume that httplib works, as a proper unit test should I think. How to do this? One idea is to

Re: [Zope-dev] AcceleratedHTTPCache and virtual hosting (collector 1447)

2005-12-03 Thread Chris McDonough
On Dec 3, 2005, at 11:08 AM, Jens Vagelpohl wrote: On 3 Dec 2005, at 15:57, Paul Winkler wrote: One thought that occurs to me is to replace httplib.HTTPConnection with a mock object of some sort that allows easy verification of its input. So we assume that httplib works, as a proper unit