You're trying too hard. You want your grid tests as a secondary test of your tile class. You've got unit tests on the tile class, sure, but you also exercise it further in context. That can only be good. If somehow the tile class got bad and only the grid test showed it, that would be a good thing, right? The goal here is to find errors, not minimize test failures.
<br><br><div><span class="gmail_quote">On 4/24/07, <b class="gmail_sendername">Julius Lucks</b> &lt;<a href="mailto:lucks@fas.harvard.edu">lucks@fas.harvard.edu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">Hi Benji,<div><br></div><div>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&#39;t start to fail for this reason.&nbsp; Is this not a good way of thinking?
</div><div><br></div><div>Cheers,</div><span class="sg"><div><br></div><div>Julius</div></span><div><span class="q"><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<div>-----------------------------------------------------</div><div><a href="http://openwetware.org/wiki/User:Lucks" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openwetware.org/wiki/User:Lucks
</a></div><div>-----------------------------------------------------</div><div><br></div><br></span> </div><br></span><span class="q"><div><div>On Apr 24, 2007, at 4:09 PM, Benji York wrote:</div><br><blockquote type="cite">
<div style="margin: 0px;">Julius Lucks wrote:</div> <blockquote type="cite"><div style="margin: 0px;">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)?
</div> </blockquote><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">What is your motivation for doing so?<span>&nbsp; </span>I don&#39;t see a problem with the tests for Grid requiring Tile.</div>
<div style="margin: 0px;">--<span>&nbsp;</span></div><div style="margin: 0px;">Benji York</div><div style="margin: 0px;"><a href="http://benjiyork.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://benjiyork.com
</a></div> </blockquote></div><br></span></div></div><br>_______________________________________________<br>testing-in-python mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:testing-in-python@lists.idyll.org">
testing-in-python@lists.idyll.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python
</a><br><br></blockquote></div><br>