]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
String in request body should be bytes.
authorRodrigo Taboada <rodrigo.taboada@myfreecomm.com.br>
Fri, 24 Oct 2014 20:30:06 +0000 (18:30 -0200)
committerRodrigo Taboada <rodrigo.taboada@myfreecomm.com.br>
Fri, 24 Oct 2014 20:30:32 +0000 (18:30 -0200)
tests/unit/test_response.py

index 503cf34438126ccae3ed65d12430b365706b7d58..4ba6dcc351c972368bb65a3b34a5ca3f4dfe0024 100644 (file)
@@ -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)