[TIP] Mock objects in testing object composition?

Benji York benji at benjiyork.com
Tue Apr 24 13:09:30 PDT 2007


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



More information about the testing-in-python mailing list