From eda8787d00b31dc90164e5c233bfb1cc1f94eaed Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Sat, 14 Dec 2019 19:05:47 -0600 Subject: Don't test request.authenticated_userid stringifies the result. --- tests/test_security.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test_security.py') 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') -- cgit v1.2.3