From c955a5ea888fb899abd177497768b6ec4bd2653d Mon Sep 17 00:00:00 2001 From: Rodrigo Taboada Date: Fri, 24 Oct 2014 18:30:06 -0200 Subject: [PATCH] String in request body should be bytes. --- tests/unit/test_response.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)