equal
deleted
inserted
replaced
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
19 |
19 |
20 import re |
20 import re |
21 import decimal |
21 import decimal |
22 import datetime |
22 import datetime |
23 |
23 |
24 from logilab.common.testlib import TestCase, unittest_main |
24 |
|
25 from logilab.common.testlib import TestCase, DocTest, unittest_main |
|
26 |
25 from cubicweb.devtools.testlib import CubicWebTC |
27 from cubicweb.devtools.testlib import CubicWebTC |
26 from cubicweb.utils import make_uid, UStringIO, SizeConstrainedList, RepeatList, HTMLHead |
28 from cubicweb.utils import (make_uid, UStringIO, SizeConstrainedList, |
|
29 RepeatList, HTMLHead) |
27 from cubicweb.entity import Entity |
30 from cubicweb.entity import Entity |
28 |
31 |
29 try: |
32 try: |
30 from cubicweb.utils import CubicWebJsonEncoder, json |
33 from cubicweb.utils import CubicWebJsonEncoder, json |
31 except ImportError: |
34 except ImportError: |
250 <script type="text/javascript" src="http://ext.com/bob3.js"></script> |
253 <script type="text/javascript" src="http://ext.com/bob3.js"></script> |
251 </head> |
254 </head> |
252 """ |
255 """ |
253 self.assertEqual(result, expected) |
256 self.assertEqual(result, expected) |
254 |
257 |
|
258 class DocTest(DocTest): |
|
259 from cubicweb import utils as module |
|
260 |
255 if __name__ == '__main__': |
261 if __name__ == '__main__': |
256 unittest_main() |
262 unittest_main() |