From 782fa1118d4db0a938e9960cc5c5464b2242d5da Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 6 Dec 2017 15:32:09 +0300 Subject: [PATCH] Tests: don't exceed 79 characters. --- test/unit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit.py b/test/unit.py index 3ed7b495..a06f5479 100644 --- a/test/unit.py +++ b/test/unit.py @@ -121,8 +121,9 @@ class TestUnitControl(TestUnit): data = data.encode() with self._control_sock() as sock: - req = ('PUT ' + path + (' HTTP/1.1\nHost: localhost\n' - 'Content-Length: ') + str(len(data)) + '\r\n\r\n').encode() + data + req = ('PUT ' + path + ' HTTP/1.1\nHost: localhost\n' + + 'Content-Length: ' + str(len(data)) + + '\r\n\r\n').encode() + data sock.sendall(req)