test/unittest_utils.py
changeset 7569 02c338197322
parent 7277 acd7f0e9f276
parent 7568 c5ee33fb6a3b
child 7762 a3f9ba4d44eb
--- a/test/unittest_utils.py	Mon Jun 27 18:48:30 2011 +0200
+++ b/test/unittest_utils.py	Tue Jun 28 16:33:53 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -21,9 +21,12 @@
 import decimal
 import datetime
 
-from logilab.common.testlib import TestCase, unittest_main
+
+from logilab.common.testlib import TestCase, DocTest, unittest_main
+
 from cubicweb.devtools.testlib import CubicWebTC
-from cubicweb.utils import make_uid, UStringIO, SizeConstrainedList, RepeatList, HTMLHead
+from cubicweb.utils import (make_uid, UStringIO, SizeConstrainedList,
+                            RepeatList, HTMLHead)
 from cubicweb.entity import Entity
 
 try:
@@ -252,5 +255,8 @@
 """
         self.assertEqual(result, expected)
 
+class DocTest(DocTest):
+    from cubicweb import utils as module
+
 if __name__ == '__main__':
     unittest_main()