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

Method test_extended_encode

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

Source from the content-addressed store, hash-verified

191 """)
192
193 def test_extended_encode(self):
194 # Issue 9824: some browsers don't follow the standard; we now
195 # encode , and ; to keep them from tripping up.
196 C = cookies.SimpleCookie()
197 C['val'] = "some,funky;stuff"
198 self.assertEqual(C.output(['val']),
199 'Set-Cookie: val="some\\054funky\\073stuff"')
200
201 def test_special_attrs(self):
202 # 'expires'

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected