MCPcopy
hub / github.com/tornadoweb/tornado / test_clear_all_cookies

Method test_clear_all_cookies

tornado/test/web_test.py:1995–2000  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1993 self.write("ok")
1994
1995 def test_clear_all_cookies(self):
1996 response = self.fetch("/", headers={"Cookie": "foo=bar; baz=xyzzy"})
1997 set_cookies = sorted(response.headers.get_list("Set-Cookie"))
1998 # Python 3.5 sends 'baz="";'; older versions use 'baz=;'
1999 self.assertTrue(set_cookies[0].startswith('baz="";'))
2000 self.assertTrue(set_cookies[1].startswith('foo="";'))
2001
2002
2003class PermissionError(Exception):

Callers

nothing calls this directly

Calls 2

get_listMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected