--- a/web/test/unittest_breadcrumbs.py Sat Oct 09 00:05:52 2010 +0200
+++ b/web/test/unittest_breadcrumbs.py Sat Oct 09 00:38:02 2010 +0200
@@ -31,8 +31,10 @@
self.assertEqual(f2.view('breadcrumbs'),
'<a href="http://testing.fr/cubicweb/folder/%s" title="">chi&ld</a>' % f2.eid)
childrset = f2.as_rset()
- ibc = self.vreg['components'].select('breadcrumbs', self.request(), rset=childrset)
- self.assertEqual(ibc.render(),
+ ibc = self.vreg['ctxcomponents'].select('breadcrumbs', self.request(), rset=childrset)
+ l = []
+ ibc.render(l.append)
+ self.assertEqual(''.join(l),
"""<span id="breadcrumbs" class="pathbar"> > <a href="http://testing.fr/cubicweb/Folder">folder_plural</a> > <a href="http://testing.fr/cubicweb/folder/%s" title="">par&ent</a> > 
<a href="http://testing.fr/cubicweb/folder/%s" title="">chi&ld</a></span>""" % (f1.eid, f2.eid))