MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_string

Method test_string

python/python3/tornado/test/httputil_test.py:384–390  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

382 self.assertEqual(sorted(headers.get_all()), [("Foo", "bar"), ("Quux", "xyzzy")])
383
384 def test_string(self):
385 headers = HTTPHeaders()
386 headers.add("Foo", "1")
387 headers.add("Foo", "2")
388 headers.add("Foo", "3")
389 headers2 = HTTPHeaders.parse(str(headers))
390 self.assertEqual(headers, headers2)
391
392
393class FormatTimestampTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
HTTPHeadersClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected