diff -r 934e758a73ef -r eae23c40627a test/unittest_entity.py --- a/test/unittest_entity.py Tue Dec 08 10:40:20 2009 +0100 +++ b/test/unittest_entity.py Tue Dec 08 10:58:56 2009 +0100 @@ -11,7 +11,7 @@ from cubicweb import Binary, Unauthorized from cubicweb.devtools.testlib import CubicWebTC -from cubicweb.common.mttransforms import HAS_TAL +from cubicweb.mttransforms import HAS_TAL from cubicweb.entities import fetch_config class EntityTC(CubicWebTC): @@ -327,7 +327,7 @@ def test_printable_value_bytes(self): e = self.add_entity('File', data=Binary('lambda x: 1'), data_format=u'text/x-python', data_encoding=u'ascii', data_name=u'toto.py') - from cubicweb.common import mttransforms + from cubicweb import mttransforms if mttransforms.HAS_PYGMENTS_TRANSFORMS: self.assertEquals(e.printable_value('data'), '''
lambda x: 1