test/unittest_utils.py
branchstable
changeset 5389 809d3b5b3d31
parent 5377 84d14ddfae13
child 5421 8167de96c523
equal deleted inserted replaced
5388:9167751463d4 5389:809d3b5b3d31
    12 
    12 
    13 from logilab.common.testlib import TestCase, unittest_main
    13 from logilab.common.testlib import TestCase, unittest_main
    14 from cubicweb.utils import make_uid, UStringIO, SizeConstrainedList, RepeatList
    14 from cubicweb.utils import make_uid, UStringIO, SizeConstrainedList, RepeatList
    15 
    15 
    16 try:
    16 try:
    17     try:
    17     from cubicweb.utils import CubicWebJsonEncoder, json
    18         import json 
       
    19     except ImportError:
       
    20         import simplejson as json
       
    21     from cubicweb.utils import CubicWebJsonEncoder
       
    22 except ImportError:
    18 except ImportError:
    23     json = None
    19     json = None
    24 
    20 
    25 class MakeUidTC(TestCase):
    21 class MakeUidTC(TestCase):
    26     def test_1(self):
    22     def test_1(self):