equal
deleted
inserted
replaced
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): |