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

Method test_roundtrip

Lib/test/test_http_cookiejar.py:304–312  ·  view source on GitHub ↗
(self, arg, expect)

Source from the content-addressed store, hash-verified

302 'n; foo="foo;_", bar="foo,_"'),
303 ])
304 def test_roundtrip(self, arg, expect):
305 input = split_header_words([arg])
306 res = join_header_words(input)
307 self.assertEqual(res, expect, """
308When parsing: '%s'
309Expected: '%s'
310Got: '%s'
311Input was: '%s'
312""" % (arg, expect, res, input))
313
314
315class FakeResponse:

Callers

nothing calls this directly

Calls 3

split_header_wordsFunction · 0.90
join_header_wordsFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected