summaryrefslogtreecommitdiff
path: root/tests/test_security.py
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2019-12-14 19:05:47 -0600
committerTheron Luhn <theron@luhn.com>2019-12-14 19:11:18 -0600
commiteda8787d00b31dc90164e5c233bfb1cc1f94eaed (patch)
tree90ecb51233d6dc1afad48e6415fd3877de62882f /tests/test_security.py
parentfe637b6953eb95137844a4c1153ccc33ab8136e3 (diff)
downloadpyramid-eda8787d00b31dc90164e5c233bfb1cc1f94eaed.tar.gz
pyramid-eda8787d00b31dc90164e5c233bfb1cc1f94eaed.tar.bz2
pyramid-eda8787d00b31dc90164e5c233bfb1cc1f94eaed.zip
Don't test request.authenticated_userid stringifies the result.
Diffstat (limited to 'tests/test_security.py')
-rw-r--r--tests/test_security.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_security.py b/tests/test_security.py
index ca28ec190..715d99804 100644
--- a/tests/test_security.py
+++ b/tests/test_security.py
@@ -345,8 +345,7 @@ class TestAuthenticatedUserId(unittest.TestCase):
def test_with_security_policy(self):
request = _makeRequest()
- # Ensure the identity is stringified.
- _registerSecurityPolicy(request.registry, 123)
+ _registerSecurityPolicy(request.registry, '123')
self.assertEqual(request.authenticated_userid, '123')