# HG changeset patch # User Aurelien Campeas # Date 1401791246 -7200 # Node ID 888a8b4061240ef07b4b0d0ab3aed71e833e2a08 # Parent 78d1beebdebc701153fbd63fef70ca82125e112d [webtests/breadcrumbs] break long lines diff -r 78d1beebdebc -r 888a8b406124 web/test/unittest_breadcrumbs.py --- a/web/test/unittest_breadcrumbs.py Thu Jun 05 17:20:00 2014 +0200 +++ b/web/test/unittest_breadcrumbs.py Tue Jun 03 12:27:26 2014 +0200 @@ -1,4 +1,4 @@ -# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. @@ -29,14 +29,19 @@ {'f1' : f1.eid, 'f2' : f2.eid}) req.cnx.commit() self.assertEqual(f2.view('breadcrumbs'), - 'chi&ld' % f2.eid) + '' + 'chi&ld' % f2.eid) childrset = f2.as_rset() ibc = self.vreg['ctxcomponents'].select('breadcrumbs', req, rset=childrset) l = [] ibc.render(l.append) - self.assertEqual(''.join(l), - """ > Folder_plural > par&ent >  -chi&ld""" % (f1.eid, f2.eid)) + self.assertMultiLineEqual(' > ' + 'Folder_plural' + ' > par&ent > \n' + '' + 'chi&ld' % (f1.eid, f2.eid), + ''.join(l)) if __name__ == '__main__': from logilab.common.testlib import unittest_main