diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-06-28 12:02:51 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-06-28 12:02:51 +0200 |
| commit | 5fe1c92250017110430c7c2153cfd8776e4c7064 (patch) | |
| tree | 8f37aeff782ceadffd5e2d1f93dafe512791a1de | |
| parent | b0acb1e73ef32e368a8a6213e300e66981f976d7 (diff) | |
Improved test assertion in wsgi tests
Thanks Berker Peksag for the suggestion.
| -rw-r--r-- | tests/wsgi/tests.py | 2 |
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!" ]) |
