diff options
Diffstat (limited to 'tests/units/test_0007_software.py')
-rw-r--r-- | tests/units/test_0007_software.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/test_0007_software.py b/tests/units/test_0007_software.py index 0984c56..4734384 100644 --- a/tests/units/test_0007_software.py +++ b/tests/units/test_0007_software.py @@ -15,9 +15,9 @@ class TestSoftwareMethods(unittest.TestCase): def test_correct_post(self): req_json = '{"disk": 1, "partition": 1}' - req = 'POST /software HTTP/1.0\r\nContent-Length:' + \ + req = 'POST /software HTTP/1.0\r\nContent-Length: ' + \ str(len(req_json)) + \ - '\r\nContent-Type:application/json\r\n\r\n' + req_json + '\r\nContent-Type: application/json\r\n\r\n' + req_json c = Client() s = Server() s.connect() |