devtools/testlib.py
branchstable
changeset 7071 db7608cb32bc
parent 7060 f26a1cbddc91
child 7075 4751d77394b1
child 7078 bad26a22fe29
--- a/devtools/testlib.py	Thu Mar 10 11:56:35 2011 +0100
+++ b/devtools/testlib.py	Thu Mar 10 14:59:21 2011 +0100
@@ -659,6 +659,10 @@
     def init_authentication(self, authmode, anonuser=None):
         self.set_option('auth-mode', authmode)
         self.set_option('anonymous-user', anonuser)
+        if anonuser is None:
+            self.config.anonymous_credential = None
+        else:
+            self.config.anonymous_credential = (anonuser, anonuser)
         req = self.request()
         origsession = req.session
         req.session = req.cnx = None