MCPcopy
hub / github.com/django/django / test_closed

Method test_closed

tests/responses/tests.py:14–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13class HttpResponseBaseTests(SimpleTestCase):
14 def test_closed(self):
15 r = HttpResponseBase()
16 self.assertIs(r.closed, False)
17
18 r.close()
19 self.assertIs(r.closed, True)
20
21 def test_write(self):
22 r = HttpResponseBase()

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
HttpResponseBaseClass · 0.90

Tested by

no test coverage detected