web/test/unittest_views_baseviews.py
branchstable
changeset 5377 84d14ddfae13
parent 4494 ccb7fce7297b
child 5385 b6e250dd7a7d
child 5389 809d3b5b3d31
equal deleted inserted replaced
5376:2c3f14bc2590 5377:84d14ddfae13
     3 :organization: Logilab
     3 :organization: Logilab
     4 :copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     4 :copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     7 """
     7 """
     8 from simplejson import loads
     8 try:
       
     9     from json import loads
       
    10 except ImportError:
       
    11     from simplejson import loads
     9 
    12 
    10 from logilab.common.testlib import unittest_main
    13 from logilab.common.testlib import unittest_main
    11 from logilab.mtconverter import html_unescape
    14 from logilab.mtconverter import html_unescape
    12 
    15 
    13 from cubicweb.devtools.testlib import CubicWebTC
    16 from cubicweb.devtools.testlib import CubicWebTC