diff options
| author | Eric Atkin <eatkin@certusllc.us> | 2020-05-28 13:05:26 -0600 |
|---|---|---|
| committer | Eric Atkin <eatkin@certusllc.us> | 2020-05-28 18:22:31 -0600 |
| commit | 942c6c07a643d8f2253b190882fae72aba3f0ea8 (patch) | |
| tree | 199c71bc0f2ab77324ef24aaaba065ac660b8694 /tests | |
| parent | 412fadefabdddda7481fba1bc86958d2f3d10631 (diff) | |
| download | pyramid-942c6c07a643d8f2253b190882fae72aba3f0ea8.tar.gz pyramid-942c6c07a643d8f2253b190882fae72aba3f0ea8.tar.bz2 pyramid-942c6c07a643d8f2253b190882fae72aba3f0ea8.zip | |
cur_domain is effectively equivalent to '.' + cur_domain and therefore negates the effect of wild_domain
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_authentication.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/test_authentication.py b/tests/test_authentication.py index 6d3b154e7..deeda5e78 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -1177,18 +1177,12 @@ class TestAuthTktCookieHelper(unittest.TestCase): helper = self._makeOne('secret', wild_domain=False) request = self._makeRequest() result = helper.remember(request, 'other') - self.assertEqual(len(result), 2) + self.assertEqual(len(result), 1) self.assertEqual(result[0][0], 'Set-Cookie') self.assertTrue(result[0][1].endswith('; Path=/; SameSite=Lax')) self.assertTrue(result[0][1].startswith('auth_tkt=')) - self.assertEqual(result[1][0], 'Set-Cookie') - self.assertTrue( - result[1][1].endswith('; Domain=localhost; Path=/; SameSite=Lax') - ) - self.assertTrue(result[1][1].startswith('auth_tkt=')) - def test_remember_parent_domain(self): helper = self._makeOne('secret', parent_domain=True) request = self._makeRequest() |
