[TIP] Mock objects in testing object composition?

Julius Lucks lucks at FAS.HARVARD.EDU
Tue Apr 24 13:18:56 PDT 2007

Hi Benji,

I am new to this, so this might not be the best reason, but I would  
like to separate Grid tests from dependance on Tile so that later on  
down the road when I change the Tile class and break it, then my Grid  
tests don't start to fail for this reason.  Is this not a good way of  




On Apr 24, 2007, at 4:09 PM, Benji York wrote:

> Julius Lucks wrote:
>> However, how do I test the Grid behavior, independently of a  
>> properly-functioning Tile class (i.e. how do I isolate the tests  
>> of the Grid object)?
> What is your motivation for doing so?  I don't see a problem with  
> the tests for Grid requiring Tile.
> -- 
> Benji York
> http://benjiyork.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/testing-in-python/attachments/20070424/8d6d4b7f/attachment.htm 

More information about the testing-in-python mailing list