web/test/unittest_views_baseviews.py
changeset 5940 0e3ae19b181a
parent 5426 0d4853a6e5ee
child 6340 470d8e828fda
--- a/web/test/unittest_views_baseviews.py	Thu Jul 08 12:54:28 2010 +0200
+++ b/web/test/unittest_views_baseviews.py	Thu Jul 08 13:33:40 2010 +0200
@@ -15,21 +15,17 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""
 
-"""
 from logilab.common.testlib import unittest_main
 from logilab.mtconverter import html_unescape
 
 from cubicweb.devtools.testlib import CubicWebTC
-
+from cubicweb.utils import json
 from cubicweb.web.htmlwidgets import TableWidget
 from cubicweb.web.views import vid_from_rset
-from cubicweb.web import json
-loads = json.loads
 
 def loadjson(value):
-    return loads(html_unescape(value))
+    return json.loads(html_unescape(value))
 
 class VidFromRsetTC(CubicWebTC):