diff -r fcc11122ffe7 -r 78cc1682c3a4 test/unittest_entity.py
--- a/test/unittest_entity.py Wed Feb 18 17:23:54 2009 +0100
+++ b/test/unittest_entity.py Wed Feb 18 17:27:08 2009 +0100
@@ -4,7 +4,9 @@
from cubicweb.devtools.apptest import EnvBasedTC
from mx.DateTime import DateTimeType, now
+
from cubicweb import Binary
+from cubicweb.common.mttransforms import HAS_TAL
class EntityTC(EnvBasedTC):
@@ -301,11 +303,6 @@
self.assertEquals(e.printable_value('content'),
'
\ndu *texte*\n
')
e['title'] = 'zou'
- e['content'] = 'titre
'
- e['content_format'] = 'text/cubicweb-page-template'
- self.assertEquals(e.printable_value('content'),
- 'zou
')
-
#e = self.etype_instance('Task')
e['content'] = '''\
a title
@@ -319,6 +316,12 @@
e['content_format'] = 'text/html'
self.assertEquals(e.printable_value('content', format='text/plain').strip(),
u'**yo (zou éà ;)**')
+ if HAS_TAL:
+ e['content'] = 'titre
'
+ e['content_format'] = 'text/cubicweb-page-template'
+ self.assertEquals(e.printable_value('content'),
+ 'zou
')
+
def test_printable_value_bytes(self):
e = self.add_entity('File', data=Binary('lambda x: 1'), data_format=u'text/x-python',