← Back to team overview

launchpad-dev team mailing list archive

Re: Writing stubs made easy

 

On February 18, 2010, Andrew Bennetts wrote:
> Jeroen Vermeulen wrote:
> > Greetings fellow hackers,
> 
> [...]
> 
> > A FakeMethod can take the place of any function or method, and:
> >  - Return a constant value.
> >  - Raise an exception instead.
> >  - Tell you how many times it's been invoked.
> 
> This looks handy.  Although, in my ideal world it'd be called
> StubMethod, to be more consistent with the terminology for test doubles
> described in <http://www.martinfowler.com/bliki/TestDouble.html>.
> 

Jeroen wanted to be nice to Stuart, (from his original message):

>> (But I 
>> didn't call them that so we can discuss them without making Stuart's IRC 
>> client go off :).

-- 
Francis J. Lacoste
francis.lacoste@xxxxxxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part.


Follow ups

References