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

Method test_extra_spaces

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

Source from the content-addressed store, hash-verified

275 self.assertEqual(C['eggs']['secure'], 'bar')
276
277 def test_extra_spaces(self):
278 C = cookies.SimpleCookie()
279 C.load('eggs = scrambled ; secure ; path = bar ; foo=foo ')
280 self.assertEqual(C.output(),
281 'Set-Cookie: eggs=scrambled; Path=bar; Secure\r\nSet-Cookie: foo=foo')
282
283 def test_quoted_meta(self):
284 # Try cookie with quoted meta-data

Callers

nothing calls this directly

Calls 3

loadMethod · 0.45
assertEqualMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected