(self)
| 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 | |
| 393 | class FormatTimestampTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected