@@ -22,7 +22,7 @@ def test_compatibility_of_get_request(self):
2222 '''
2323 # Get the response for an individual request.
2424 inv_req = self .client .get ("/views/" )
25- inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req ._headers )
25+ inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req .items () )
2626
2727 # Get the response for a batch request.
2828 batch_request = self .make_a_batch_request ("GET" , "/views/" , "" )
@@ -41,7 +41,7 @@ def test_compatibility_of_post_request(self):
4141
4242 # Get the response for an individual request.
4343 inv_req = self .client .post ("/views/" , data , content_type = "text/plain" )
44- inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req ._headers )
44+ inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req .items () )
4545
4646 # Get the response for a batch request.
4747 batch_request = self .make_a_batch_request ("POST" , "/views/" , data , {"content_type" : "text/plain" })
@@ -60,7 +60,7 @@ def test_compatibility_of_put_request(self):
6060
6161 # Get the response for an individual request.
6262 inv_req = self .client .patch ("/views/" , data , content_type = "text/plain" )
63- inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req ._headers )
63+ inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req .items () )
6464
6565 # Get the response for a batch request.
6666 batch_request = self .make_a_batch_request ("patch" , "/views/" , data , {"content_type" : "text/plain" })
@@ -79,7 +79,7 @@ def test_compatibility_of_patch_request(self):
7979
8080 # Get the response for an individual request.
8181 inv_req = self .client .post ("/views/" , data , content_type = "text/plain" )
82- inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req ._headers )
82+ inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req .items () )
8383
8484 # Get the response for a batch request.
8585 batch_request = self .make_a_batch_request ("POST" , "/views/" , data , {"CONTENT_TYPE" : "text/plain" })
@@ -96,7 +96,7 @@ def test_compatibility_of_delete_request(self):
9696 '''
9797 # Get the response for an individual request.
9898 inv_req = self .client .delete ("/views/" )
99- inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req ._headers )
99+ inv_resp = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req .items () )
100100
101101 # Get the response for a batch request.
102102 batch_request = self .make_a_batch_request ("delete" , "/views/" , "" )
@@ -117,15 +117,15 @@ def test_compatibility_of_multiple_requests(self):
117117
118118 # Get the response for an individual GET request.
119119 inv_req = self .client .get ("/views/" )
120- inv_get = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req ._headers )
120+ inv_get = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req .items () )
121121
122122 # Get the response for an individual POST request.
123123 inv_req = self .client .post ("/views/" , data , content_type = "text/plain" )
124- inv_post = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req ._headers )
124+ inv_post = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req .items () )
125125
126126 # Get the response for an individual PUT request.
127127 inv_req = self .client .patch ("/views/" , data , content_type = "text/plain" )
128- inv_put = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req ._headers )
128+ inv_put = self .prepare_response (inv_req .status_code , inv_req .content .decode ('utf-8' ), inv_req .items () )
129129
130130 # Consolidate all the responses.
131131 indv_responses = [inv_get , inv_post , inv_put ]
0 commit comments