mirror of
https://github.com/django/django.git
synced 2025-07-30 08:35:23 +00:00
parent
3570ff734e
commit
bacb097ac3
4 changed files with 11 additions and 15 deletions
|
@ -56,6 +56,5 @@ class SignalsTests(TestCase):
|
|||
def test_request_signals_streaming_response(self):
|
||||
response = self.client.get('/streaming/')
|
||||
self.assertEqual(self.signals, ['started'])
|
||||
# Avoid self.assertContains, because it explicitly calls response.close()
|
||||
self.assertEqual(b''.join(response.streaming_content), b"streaming content")
|
||||
self.assertEqual(self.signals, ['started', 'finished'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue