(self)
| 274 | self.assertEqual(response.read(), b"POST") |
| 275 | |
| 276 | def test_404(self): |
| 277 | with self.assertRaises(HTTPError) as err: |
| 278 | self.urlopen("/") |
| 279 | err.exception.close() |
| 280 | self.assertEqual(err.exception.code, 404, "Expected 404 response") |
| 281 | |
| 282 | def test_view(self): |
| 283 | with self.urlopen("/example_view/") as f: |