devtools/test/unittest_httptest.py
branchstable
changeset 6438 abae10f81a85
parent 6424 f443a2b8a5c7
child 7053 0673419b3066
--- a/devtools/test/unittest_httptest.py	Mon Oct 11 11:05:19 2010 +0200
+++ b/devtools/test/unittest_httptest.py	Mon Oct 11 12:26:50 2010 +0200
@@ -1,7 +1,25 @@
+# copyright 2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
+#
+# This file is part of CubicWeb.
+#
+# CubicWeb is free software: you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# CubicWeb is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
+"""unittest for cubicweb.devtools.httptest module"""
+
 import httplib
 
-from cubicweb.devtools.httptest import CubicWebServerTC
-from cubicweb.devtools.httptest import CubicWebServerConfig
+from cubicweb.devtools.httptest import CubicWebServerTC, CubicWebServerConfig
 
 
 class TwistedCWAnonTC(CubicWebServerTC):
@@ -22,10 +40,7 @@
 
 
 class TwistedCWIdentTC(CubicWebServerTC):
-
-    def setUp(self):
-        CubicWebServerConfig.anonymous_logged = False
-        CubicWebServerTC.setUp(self)
+    anonymous_logged = False
 
     def test_response_denied(self):
         response = self.web_get()