diff options
| author | Chris McDonough <chrism@plope.com> | 2011-12-15 01:49:32 -0800 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-12-15 01:49:32 -0800 |
| commit | 43c8c312a8d9dfbd841839a52e7b51793826f38f (patch) | |
| tree | 8d8996049f06237bc93928f3f3348c54a9538f50 | |
| parent | 6747aa8072b645a302a218d36283045c2a8381c6 (diff) | |
| parent | 2220a38e327091384882e1d418544056b6dbd69c (diff) | |
| download | pyramid-43c8c312a8d9dfbd841839a52e7b51793826f38f.tar.gz pyramid-43c8c312a8d9dfbd841839a52e7b51793826f38f.tar.bz2 pyramid-43c8c312a8d9dfbd841839a52e7b51793826f38f.zip | |
Merge pull request #376 from jinty/master
Fix typo in log message
| -rw-r--r-- | pyramid/authentication.py | 2 | ||||
| -rw-r--r-- | pyramid/tests/test_authentication.py | 2 |
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): |
