<br><br><div class="gmail_quote">On Sun, Aug 15, 2010 at 9:21 PM, Ned Batchelder <span dir="ltr">&lt;<a href="mailto:ned@nedbatchelder.com">ned@nedbatchelder.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  

<div bgcolor="#ffffff" text="#000000">
I had to bridge this gap for coverage.py, and ended up doing it for a
few methods, see
<a href="http://bitbucket.org/ned/coveragepy/src/tip/test/backunittest.py" target="_blank">http://bitbucket.org/ned/coveragepy/src/tip/test/backunittest.py</a><br>
<br></div></blockquote><div>That looks **exactly** like what I need. Thanks for sharing!</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
But this method bothers me: the Multiline aspect has nothing to do with
the comparison, only with the reporting of failed assertions.  Better
would be to have assertEqual be smart enough to recognize that the
arguments are multiline strings, and just do the right thing with them.<br>
<br>
--Ned.<div><div></div><div class="h5"><br>
<br>
On 8/15/2010 8:42 PM, Alfredo Deza wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">Hi,
  <div><br>
  </div>
  <div>Is there anything like <a href="http://docs.python.org/library/unittest.html#unittest.TestCase.assertMultiLineEqual" target="_blank">assertMultilineEqual</a>
for older versions of Python (e.g. not 2.7)?</div>
  <div><br>
  </div>
  <div>I think nose and pytest may have already solved that, but is
there an easy way that doesn&#39;t require added dependencies?</div>
  <div><br>
  </div>
  <div>Thanks!</div>
  </div></div><pre><fieldset></fieldset>
_______________________________________________
testing-in-python mailing list
<a href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a>
  </pre>
</blockquote>
</div>

</blockquote></div><br>