1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #19519 again -- Regression in LiveServerTestCase after fd1279a4.

This commit is contained in:
Aymeric Augustin
2013-01-01 10:12:06 +01:00
parent 3570ff734e
commit bacb097ac3
4 changed files with 11 additions and 15 deletions

View File

@@ -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'])