diff --git a/product/ERP5/tests/testERP5Web.py b/product/ERP5/tests/testERP5Web.py
index 213c6a73d3bcd9dfb6e8ce6345434a7b13097a4c..55dac10da0c927d40672d505b2f9178fa7214a6c 100644
--- a/product/ERP5/tests/testERP5Web.py
+++ b/product/ERP5/tests/testERP5Web.py
@@ -308,7 +308,7 @@ H茅 H茅 H茅!""", page.asText().strip())
     content = '<a href="${toto}">$titi</a>'
     asText_content = '$titi\n'
     substituted_content = '<a href="foo">bar</a>'
-    substituted_asText_content = 'bar'
+    substituted_asText_content = 'bar\n'
     mapping = dict(toto='foo', titi='bar')
 
     portal = self.getPortal()