summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-12-15 05:11:05 -0500
committerChris McDonough <chrism@plope.com>2011-12-15 05:11:05 -0500
commit8e615c4f433c4df9b694c6452f793ed4763434ff (patch)
tree8d8996049f06237bc93928f3f3348c54a9538f50
parentc45c29fe5ce316d42965e5a84a1fb195a5320456 (diff)
parent43c8c312a8d9dfbd841839a52e7b51793826f38f (diff)
downloadpyramid-8e615c4f433c4df9b694c6452f793ed4763434ff.tar.gz
pyramid-8e615c4f433c4df9b694c6452f793ed4763434ff.tar.bz2
pyramid-8e615c4f433c4df9b694c6452f793ed4763434ff.zip
Merge branch 'master' of github.com:Pylons/pyramid
-rw-r--r--pyramid/authentication.py2
-rw-r--r--pyramid/tests/test_authentication.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/authentication.py b/pyramid/authentication.py
index 13ec4284a..83bdb13d1 100644
--- a/pyramid/authentication.py
+++ b/pyramid/authentication.py
@@ -82,7 +82,7 @@ class CallbackAuthenticationPolicy(object):
userid = self.unauthenticated_userid(request)
if userid is None:
debug and self._log(
- 'authenticated_userid returned %r; returning %r' % (
+ 'unauthenticated_userid returned %r; returning %r' % (
userid, effective_principals),
'effective_principals',
request
diff --git a/pyramid/tests/test_authentication.py b/pyramid/tests/test_authentication.py
index c7ae407ce..02bfa1fed 100644
--- a/pyramid/tests/test_authentication.py
+++ b/pyramid/tests/test_authentication.py
@@ -83,7 +83,7 @@ class TestCallbackAuthenticationPolicyDebugging(unittest.TestCase):
self.assertEqual(
self.messages[0],
"pyramid.tests.test_authentication.MyAuthenticationPolicy."
- "effective_principals: authenticated_userid returned None; "
+ "effective_principals: unauthenticated_userid returned None; "
"returning ['system.Everyone']")
def test_effective_principals_no_callback(self):