<div dir="ltr">Considering that inner classese are relatively rare in python, I&#39;d go for the inner-classes being tested in the main class&#39;s unit test. If the user doesn&#39;t want the inner class tested, she can just delete the stubs.<br>
<br><div class="gmail_quote">On Fri, Aug 29, 2008 at 12:21 AM, Paul Hildebrandt <span dir="ltr">&lt;<a href="mailto:Paul.Hildebrandt@disneyanimation.com">Paul.Hildebrandt@disneyanimation.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You&#39;re right, I should have said inner classes.<br>
<div><div></div><div class="Wj3C7c"><br>
Jonathan Lange wrote:<br>
&gt; On Fri, Aug 29, 2008 at 4:08 PM, Paul Hildebrandt<br>
&gt; &lt;<a href="mailto:Paul.Hildebrandt@disneyanimation.com">Paul.Hildebrandt@disneyanimation.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Michal and I were musing on how to handle unit testing subclasses in<br>
&gt;&gt; pythoscope (<a href="http://pythoscope.org" target="_blank">http://pythoscope.org</a>). &nbsp;We were thinking about them in two<br>
&gt;&gt; ways.<br>
&gt;&gt; 1. They are internal to the class and some people may not want them tested.<br>
&gt;&gt; 2. They should be treated like a method in that they will be tested in<br>
&gt;&gt; the main classes unit test.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; It sounds like you are talking about inner classes, not subclasses.<br>
&gt;<br>
&gt; Do you mean:<br>
&gt;<br>
&gt; class Foo:<br>
&gt; &nbsp; &nbsp; &quot;a thing&quot;<br>
&gt;<br>
&gt; class Bar(Foo):<br>
&gt; &nbsp; &nbsp; &quot;a subthing&quot;<br>
&gt;<br>
&gt; or:<br>
&gt;<br>
&gt; class Foo:<br>
&gt; &nbsp; &nbsp; &quot;a foo&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; class Bar:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;a bar in a foo&quot;<br>
&gt;<br>
&gt; ?<br>
&gt;<br>
&gt; jml<br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>=====<br>--Ryan E. Freckleton<br>
</div>