summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-11-16 15:28:18 +0100
committerPierre Ossman <ossman@cendio.se>2022-11-16 15:28:18 +0100
commit27ee3534011dedaaeb5c85b333394fd5f94f14ca (patch)
tree0abfcf4e2b3179f7709671486c122f807cfe26eb /tests
parent39c7cb011577399fd0a4fee5624dcc229db7b17e (diff)
downloadwebsockify-27ee3534011dedaaeb5c85b333394fd5f94f14ca.tar.gz
Don't include default message to send_error()
Python can provide this for us, so avoid duplication.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_websockifyserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_websockifyserver.py b/tests/test_websockifyserver.py
index 4f46cb1..79d1b25 100644
--- a/tests/test_websockifyserver.py
+++ b/tests/test_websockifyserver.py
@@ -86,7 +86,7 @@ class WebSockifyRequestHandlerTestCase(unittest.TestCase):
FakeSocket(b'GET /tmp.txt HTTP/1.1'), '127.0.0.1', server)
handler.do_GET()
- send_error.assert_called_with(405, ANY)
+ send_error.assert_called_with(405)
@patch('websockify.websockifyserver.WebSockifyRequestHandler.send_error')
def test_list_dir_with_file_only_returns_error(self, send_error):
@@ -96,7 +96,7 @@ class WebSockifyRequestHandlerTestCase(unittest.TestCase):
handler.path = '/'
handler.do_GET()
- send_error.assert_called_with(404, ANY)
+ send_error.assert_called_with(404)
class WebSockifyServerTestCase(unittest.TestCase):