MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_extended_encode

Method test_extended_encode

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

Source from the content-addressed store, hash-verified

169 """)
170
171 def test_extended_encode(self):
172 # Issue 9824: some browsers don't follow the standard; we now
173 # encode , and ; to keep them from tripping up.
174 C = cookies.SimpleCookie()
175 C['val'] = "some,funky;stuff"
176 self.assertEqual(C.output(['val']),
177 'Set-Cookie: val="some\\054funky\\073stuff"')
178
179 def test_special_attrs(self):
180 # 'expires'

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected