--- a/test/unittest_uilib.py Mon Jun 27 18:48:30 2011 +0200
+++ b/test/unittest_uilib.py Tue Jun 28 16:33:53 2011 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# 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.
@@ -22,14 +22,15 @@
import pkg_resources
-from logilab.common.testlib import TestCase, unittest_main
+
from unittest2 import skipIf
+from logilab.common.testlib import DocTest, TestCase, unittest_main
+
from cubicweb import uilib
lxml_version = pkg_resources.get_distribution('lxml').version.split('.')
-
class UILIBTC(TestCase):
def test_remove_tags(self):
@@ -185,6 +186,10 @@
self.assertMultiLineEqual(uilib.soup2xhtml(incoming, 'ascii'), expected)
+class DocTest(DocTest):
+ module = uilib
+
+
if __name__ == '__main__':
unittest_main()