<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d"><br>
</div>I like it. The oft-cited &#39;boilerplate&#39; is usually an import and a class<br>
definition...<br></blockquote><div><br></div><div>Compared to say doctest or nose, unittest feels like riding a 10 speed made out of lead to me :)</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
&gt;&gt; UNITTEST IS EVIL.<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
I&#39;m aware of no justification for that statement...</blockquote><div><br></div><div>Well, I think even Guido mentioned that he is generally unhappy with some of the Java APIs that Python copied. &nbsp;I am assuming unittest falls into this category as well.</div>
<div><br></div><div>Additionally, I guess I personally have a problem with OO in general, as I feel a lot of OO is boilerplate, but that is a totally separate issue :) I do think there is some evil lurking in unittest because it tempts some abstract the hell out it, and then all of a sudden you have think deeply about how your test architecture is designed, and completely forget that this is not even what you were trying to do in the first place, which is simply test your code.</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<div class="Ih2E3d"><br>
&gt; The many good points of the standard library unittest module have<br>
&gt; allowed me to write far better Python code than I would otherwise have<br>
&gt; written. It&#39;s not evil in my view.<br>
&gt;<br>
&gt; It&#39;s ugly. It&#39;s crufty. It&#39;s not PEP-8-conformant. It&#39;s mostly<br>
&gt; unmaintained. It can lead to rather baroque unit test modules. But it<br>
&gt; also has many good features, and I don&#39;t think any of the bad ones<br>
&gt; make it &quot;evil&quot;.<br>
&gt;<br>
&gt;<br>
&gt;&gt; UNITTEST NEEDS TO BE REPLACED.<br>
&gt;&gt;<br>
&gt;<br>
&gt; Entirely agreed on this point. I think, though, that you&#39;ll find<br>
&gt; little immediate consensus on what to replace it with :-)<br>
&gt;<br>
&gt;<br>
<br>
</div>Personally I disagree - although there are obvious improvements that can<br>
be made.</blockquote><div><br></div><div>I would vote for something dirt simple like nose. &nbsp;</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Michael<br>
<font color="#888888"><br>
--<br>
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a><br>
<a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br>
<a href="http://www.trypython.org/" target="_blank">http://www.trypython.org/</a><br>
<a href="http://www.ironpython.info/" target="_blank">http://www.ironpython.info/</a><br>
<a href="http://www.theotherdelia.co.uk/" target="_blank">http://www.theotherdelia.co.uk/</a><br>
<a href="http://www.resolverhacks.net/" target="_blank">http://www.resolverhacks.net/</a><br>
</font><div><div></div><div class="Wj3C7c"><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>Noah Gift<br><a href="http://noahgift.com">http://noahgift.com</a><br>
</div>