MCPcopy
hub / github.com/django/django / test_view

Method test_view

tests/servers/tests.py:282–284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

urlopenMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected