[test] Use stdlib unittest in unittest_webconfig.py
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 26 Oct 2016 11:24:57 +0200
changeset 11754 c7b2b809bf50
parent 11753 cf24ccbc7b83
child 11755 96ced95e4002
[test] Use stdlib unittest in unittest_webconfig.py
cubicweb/web/test/unittest_webconfig.py
--- a/cubicweb/web/test/unittest_webconfig.py	Thu Nov 03 12:15:42 2016 +0100
+++ b/cubicweb/web/test/unittest_webconfig.py	Wed Oct 26 11:24:57 2016 +0200
@@ -19,11 +19,13 @@
 """cubicweb.web.webconfig unit tests"""
 
 import os
+from unittest import TestCase
 
-from logilab.common.testlib import TestCase, unittest_main
 from cubicweb.devtools import ApptestConfiguration, fake
 
+
 class WebconfigTC(TestCase):
+
     def setUp(self):
         # need explicit None if dirname(__file__) is empty, see
         # ApptestConfiguration.__init__
@@ -54,5 +56,7 @@
         signature = self.config.sign_text(u'hôp')
         self.assertTrue(self.config.check_text_sign(u'hôp', signature))
 
+
 if __name__ == '__main__':
-    unittest_main()
+    import unittest
+    unittest.main()