[TIP] About assertMultilineEqual
alfredodeza at gmail.com
Mon Aug 16 04:58:28 PDT 2010
On Sun, Aug 15, 2010 at 9:21 PM, Ned Batchelder <ned at nedbatchelder.com>wrote:
> I had to bridge this gap for coverage.py, and ended up doing it for a few
> methods, see
> That looks **exactly** like what I need. Thanks for sharing!
> 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.
> On 8/15/2010 8:42 PM, Alfredo Deza wrote:
> Is there anything like assertMultilineEqual<http://docs.python.org/library/unittest.html#unittest.TestCase.assertMultiLineEqual>for older versions of Python (e.g. not 2.7)?
> I think nose and pytest may have already solved that, but is there an
> easy way that doesn't require added dependencies?
> testing-in-python mailing listtesting-in-python at lists.idyll.orghttp://lists.idyll.org/listinfo/testing-in-python
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python