summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/wsgi/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wsgi/tests.py b/tests/wsgi/tests.py
index 03ac7ee706..99076f56bd 100644
--- a/tests/wsgi/tests.py
+++ b/tests/wsgi/tests.py
@@ -43,7 +43,7 @@ class WSGITest(SimpleTestCase):
self.assertEqual(
set(response_data["headers"]),
{('Content-Length', '12'), ('Content-Type', 'text/html; charset=utf-8')})
- self.assertTrue(bytes(response) in [
+ self.assertIn(bytes(response), [
b"Content-Length: 12\r\nContent-Type: text/html; charset=utf-8\r\n\r\nHello World!",
b"Content-Type: text/html; charset=utf-8\r\nContent-Length: 12\r\n\r\nHello World!"
])