test/unittest_utils.py
branchstable
changeset 7568 c5ee33fb6a3b
parent 6415 b0b0f097a72d
child 7569 02c338197322
--- a/test/unittest_utils.py	Tue Jun 28 13:16:09 2011 +0200
+++ b/test/unittest_utils.py	Tue Jun 28 16:32:38 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,7 +21,7 @@
 import decimal
 import datetime
 
-from logilab.common.testlib import TestCase, unittest_main
+from logilab.common.testlib import TestCase, DocTest, unittest_main
 
 from cubicweb.utils import make_uid, UStringIO, SizeConstrainedList, RepeatList
 from cubicweb.entity import Entity
@@ -156,5 +156,8 @@
         self.assertEqual(self.encode(TestCase), 'null')
 
 
+class DocTest(DocTest):
+    from cubicweb import utils as module
+
 if __name__ == '__main__':
     unittest_main()