(self)
| 379 | self.assertEqual(response.body, utf8(expected)) |
| 380 | |
| 381 | def test_set_cookie_overwrite(self): |
| 382 | response = self.fetch("/set_overwrite") |
| 383 | headers = response.headers.get_list("Set-Cookie") |
| 384 | self.assertEqual( |
| 385 | sorted(headers), ["a=e; Path=/", "c=d; Domain=example.com; Path=/"] |
| 386 | ) |
| 387 | |
| 388 | def test_set_cookie_max_age(self): |
| 389 | response = self.fetch("/set_max_age") |