test/unittest_entity.py
changeset 4023 eae23c40627a
parent 4015 4f8235204dda
child 4031 56f4d4f7f86f
--- 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'),
                               '''<div class="highlight"><pre><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="mi">1</span>