[TIP] About assertMultilineEqual
fuzzyman at voidspace.org.uk
Tue Aug 17 02:43:00 PDT 2010
On 16/08/2010 02:21, Ned Batchelder wrote:
> I had to bridge this gap for coverage.py, and ended up doing it for a
> few methods, see
> 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
If you use unittest2 then you get assertMultilineEqual and smarter
> On 8/15/2010 8:42 PM, Alfredo Deza wrote:
>> Is there anything like 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 list
>> testing-in-python at lists.idyll.org
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python