diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/servers/test_basehttp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/servers/test_basehttp.py b/tests/servers/test_basehttp.py index a6e75a9c48..a837505feb 100644 --- a/tests/servers/test_basehttp.py +++ b/tests/servers/test_basehttp.py @@ -50,7 +50,7 @@ class WSGIRequestHandlerTestCase(SimpleTestCase): with self.assertLogs("django.server", "ERROR") as cm: handler.log_message("GET %s %s", "\x16\x03", "4") - self.assertIn( + self.assertEqual( "You're accessing the development server over HTTPS, " "but it only supports HTTP.", cm.records[0].getMessage(), @@ -114,7 +114,7 @@ class WSGIServerTestCase(SimpleTestCase): """WSGIServer handles broken pipe errors.""" request = WSGIRequest(self.request_factory.get("/").environ) client_address = ("192.168.2.0", 8080) - msg = f"- Broken pipe from {client_address}\n" + msg = f"- Broken pipe from {client_address}" tests = [ BrokenPipeError, ConnectionAbortedError, |
