MCPcopy
hub / github.com/django/django / test_static_files

Method test_static_files

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

Source from the content-addressed store, hash-verified

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:
288 self.assertEqual(f.read().rstrip(b"\r\n"), b"example static file")
289
290 def test_no_collectstatic_emulation(self):
291 """

Callers

nothing calls this directly

Calls 2

urlopenMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected