[test] Improve tagging and error message of TwistedCWIdentTC stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 08 Mar 2011 17:55:02 +0100
branchstable
changeset 7053 0673419b3066
parent 7052 9680cf108821
child 7054 c8f12ab250b7
[test] Improve tagging and error message of TwistedCWIdentTC
devtools/test/unittest_httptest.py
--- a/devtools/test/unittest_httptest.py	Thu Mar 03 11:52:35 2011 +0100
+++ b/devtools/test/unittest_httptest.py	Tue Mar 08 17:55:02 2011 +0100
@@ -19,6 +19,7 @@
 
 import httplib
 
+from logilab.common.testlib import Tags
 from cubicweb.devtools.httptest import CubicWebServerTC, CubicWebServerConfig
 
 
@@ -40,7 +41,9 @@
 
 
 class TwistedCWIdentTC(CubicWebServerTC):
+
     anonymous_logged = False
+    tags = CubicWebServerTC.tags | Tags(('auth',))
 
     def test_response_denied(self):
         response = self.web_get()
@@ -49,7 +52,7 @@
     def test_login(self):
         response = self.web_get()
         if response.status != httplib.FORBIDDEN:
-             self.skipTest('Already authenticated')
+            self.skipTest('Already authenticated, "test_response_denied" must have failed')
         # login
         self.web_login(self.admlogin, self.admpassword)
         response = self.web_get()