diff options
| author | Gabriel Falcão <gabriel@nacaolivre.org> | 2018-11-04 23:34:43 +0100 |
|---|---|---|
| committer | Gabriel Falcão <gabriel@nacaolivre.org> | 2018-11-04 23:34:43 +0100 |
| commit | 067c4bda72a442e1771374f9d69a5a1c77c88de5 (patch) | |
| tree | 907b5303ea0c77fbc64daa67e79920577c8edc2f /tests/functional/test_debug.py | |
| parent | 2314893ec5ab46513e91ab867d7b55a72968909e (diff) | |
| download | httpretty-black.tar.gz | |
prettify code with blackblack
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." ) |
