MCPcopy
hub / github.com/django/django / test_delete_cookie_samesite

Method test_delete_cookie_samesite

tests/responses/test_cookie.py:153–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 self.assertIs(response.cookies["c"]["secure"], True)
152
153 def test_delete_cookie_samesite(self):
154 response = HttpResponse()
155 response.delete_cookie("c", samesite="lax")
156 self.assertEqual(response.cookies["c"]["samesite"], "lax")

Callers

nothing calls this directly

Calls 2

HttpResponseClass · 0.90
delete_cookieMethod · 0.80

Tested by

no test coverage detected