[test] Use stdlib unittest instead of lgc.testlib in unittest_request.py
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 04 Nov 2016 11:57:09 +0100
changeset 11798 55f678f128ef
parent 11797 6c036ac4c1c2
child 11799 1bdfe9d4ab83
[test] Use stdlib unittest instead of lgc.testlib in unittest_request.py
cubicweb/web/test/unittest_request.py
--- a/cubicweb/web/test/unittest_request.py	Fri Nov 04 11:56:00 2016 +0100
+++ b/cubicweb/web/test/unittest_request.py	Fri Nov 04 11:57:09 2016 +0100
@@ -1,9 +1,9 @@
 """misc. unittests for utility functions
 """
 
-from logilab.common.testlib import TestCase, unittest_main
+import unittest
+from functools import partial
 
-from functools import partial
 
 from cubicweb.devtools.fake import FakeConfig
 
@@ -12,7 +12,7 @@
 
 
 
-class AcceptParserTC(TestCase):
+class AcceptParserTC(unittest.TestCase):
 
     def test_parse_accept(self):
         parse_accept_header = partial(_parse_accept_header,
@@ -68,7 +68,7 @@
                           ('*', '*', 0.7)])
 
 
-class WebRequestTC(TestCase):
+class WebRequestTC(unittest.TestCase):
 
     def test_base_url(self):
         dummy_vreg = type('DummyVreg', (object,), {})()
@@ -98,4 +98,4 @@
 
 
 if __name__ == '__main__':
-    unittest_main()
+    unittest.main()