(self)
| 330 | ] |
| 331 | |
| 332 | def test_set_cookie(self): |
| 333 | response = self.fetch("/set") |
| 334 | self.assertEqual( |
| 335 | sorted(response.headers.get_list("Set-Cookie")), |
| 336 | ["bytes=zxcv; Path=/", "str=asdf; Path=/", "unicode=qwer; Path=/"], |
| 337 | ) |
| 338 | |
| 339 | def test_get_cookie(self): |
| 340 | response = self.fetch("/get", headers={"Cookie": "foo=bar"}) |