(self)
| 280 | self.assertEqual(err.exception.code, 404, "Expected 404 response") |
| 281 | |
| 282 | def test_view(self): |
| 283 | with self.urlopen("/example_view/") as f: |
| 284 | self.assertEqual(f.read(), b"example view") |
| 285 | |
| 286 | def test_static_files(self): |
| 287 | with self.urlopen("/static/example_static_file.txt") as f: |