From: Rodrigo Taboada Date: Fri, 24 Oct 2014 20:30:06 +0000 (-0200) Subject: String in request body should be bytes. X-Git-Tag: v1.1.3~8^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c955a5ea888fb899abd177497768b6ec4bd2653d;p=vcrpy.git String in request body should be bytes. --- diff --git a/tests/unit/test_response.py b/tests/unit/test_response.py index 503cf34..4ba6dcc 100644 --- a/tests/unit/test_response.py +++ b/tests/unit/test_response.py @@ -18,7 +18,7 @@ def test_response_should_have_headers_field(): "content-type": ["text/html; charset=utf-8"], }, "body": { - "string": "" + "string": b"" } } response = VCRHTTPResponse(recorded_response) @@ -29,7 +29,7 @@ def test_response_should_have_headers_field(): def test_response_headers_should_be_equal_to_msg(): recorded_response = { "status": { - "message": "OK", + "message": b"OK", "code": 200 }, "headers": { @@ -39,7 +39,7 @@ def test_response_headers_should_be_equal_to_msg(): "content-type": ["text/html; charset=utf-8"], }, "body": { - "string": "" + "string": b"" } } response = VCRHTTPResponse(recorded_response) @@ -59,7 +59,7 @@ def test_response_headers_should_have_correct_values(): "content-type": ["text/html; charset=utf-8"], }, "body": { - "string": "" + "string": b"" } } response = VCRHTTPResponse(recorded_response)