[TIP] About assertMultilineEqual

Nicolas Chauvat nicolas.chauvat at logilab.fr
Sun Aug 22 08:34:57 PDT 2010


Hi,

On Sun, Aug 15, 2010 at 08:42:50PM -0400, 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)?

Maybe the _difftext method at 
http://intranet.logilab.fr/dir/blogentry/1354
used by assertTextEquals and assertStreamEquals
at http://hg.logilab.org/logilab/common/file/8e74b3633cbb/testlib.py#l1550
and http://hg.logilab.org/logilab/common/file/8e74b3633cbb/testlib.py#l1575

Hope this helps,

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  



More information about the testing-in-python mailing list