MCPcopy Index your code
hub / github.com/python/cpython / test_set_secure_httponly_attrs

Method test_set_secure_httponly_attrs

Lib/test/test_http_cookies.py:224–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

222 'Set-Cookie: Customer="WILE_E_COYOTE"; Max-Age=10')
223
224 def test_set_secure_httponly_attrs(self):
225 C = cookies.SimpleCookie('Customer="WILE_E_COYOTE"')
226 C['Customer']['secure'] = True
227 C['Customer']['httponly'] = True
228 self.assertEqual(C.output(),
229 'Set-Cookie: Customer="WILE_E_COYOTE"; HttpOnly; Secure')
230
231 def test_set_secure_httponly_partitioned_attrs(self):
232 C = cookies.SimpleCookie('Customer="WILE_E_COYOTE"')

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected