summaryrefslogtreecommitdiff
path: root/tests/httpwrappers
diff options
context:
space:
mode:
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r--tests/httpwrappers/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index a387ca1f74..985380cc57 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -746,6 +746,11 @@ class CookieTests(unittest.TestCase):
# document.cookie parses whitespace.
self.assertEqual(parse_cookie(' = b ; ; = ; c = ; '), {'': 'b', 'c': ''})
+ def test_samesite(self):
+ c = SimpleCookie('name=value; samesite=lax; httponly')
+ self.assertEqual(c['name']['samesite'], 'lax')
+ self.assertIn('SameSite=lax', c.output())
+
def test_httponly_after_load(self):
c = SimpleCookie()
c.load("name=val")