diff options
Diffstat (limited to 'tests/functional/test_debug.py')
| -rw-r--r-- | tests/functional/test_debug.py | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/tests/functional/test_debug.py b/tests/functional/test_debug.py index 995da8d..577038e 100644 --- a/tests/functional/test_debug.py +++ b/tests/functional/test_debug.py @@ -31,11 +31,7 @@ from httpretty import httprettified def create_socket(context): - context.sock = socket.socket( - socket.AF_INET, - socket.SOCK_STREAM, - socket.IPPROTO_TCP, - ) + context.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP) context.sock.is_http = True @@ -45,8 +41,7 @@ def test_httpretty_debugs_socket_send(context): "HTTPretty should debug socket.send" expect(context.sock.send).when.called.to.throw( - RuntimeError, - "HTTPretty intercepted and unexpected socket method call." + RuntimeError, "HTTPretty intercepted and unexpected socket method call." ) @@ -56,8 +51,7 @@ def test_httpretty_debugs_socket_sendto(context): "HTTPretty should debug socket.sendto" expect(context.sock.sendto).when.called.to.throw( - RuntimeError, - "HTTPretty intercepted and unexpected socket method call." + RuntimeError, "HTTPretty intercepted and unexpected socket method call." ) @@ -67,8 +61,7 @@ def test_httpretty_debugs_socket_recv(context): "HTTPretty should debug socket.recv" expect(context.sock.recv).when.called.to.throw( - RuntimeError, - "HTTPretty intercepted and unexpected socket method call." + RuntimeError, "HTTPretty intercepted and unexpected socket method call." ) @@ -78,8 +71,7 @@ def test_httpretty_debugs_socket_recvfrom(context): "HTTPretty should debug socket.recvfrom" expect(context.sock.recvfrom).when.called.to.throw( - RuntimeError, - "HTTPretty intercepted and unexpected socket method call." + RuntimeError, "HTTPretty intercepted and unexpected socket method call." ) @@ -89,8 +81,7 @@ def test_httpretty_debugs_socket_recv_into(context): "HTTPretty should debug socket.recv_into" expect(context.sock.recv_into).when.called.to.throw( - RuntimeError, - "HTTPretty intercepted and unexpected socket method call." + RuntimeError, "HTTPretty intercepted and unexpected socket method call." ) @@ -100,6 +91,5 @@ def test_httpretty_debugs_socket_recvfrom_into(context): "HTTPretty should debug socket.recvfrom_into" expect(context.sock.recvfrom_into).when.called.to.throw( - RuntimeError, - "HTTPretty intercepted and unexpected socket method call." + RuntimeError, "HTTPretty intercepted and unexpected socket method call." ) |
