(self)
| 995 | self.assertEqual(self.fetch_json("/optional_path/"), {"path": None}) |
| 996 | |
| 997 | def test_multi_header(self): |
| 998 | response = self.fetch("/multi_header") |
| 999 | self.assertEqual(response.headers["x-overwrite"], "2") |
| 1000 | self.assertEqual(response.headers.get_list("x-multi"), ["3", "4"]) |
| 1001 | |
| 1002 | def test_redirect(self): |
| 1003 | response = self.fetch("/redirect?permanent=1", follow_redirects=False) |