1212
1313class HttpResponseFromRequestsLibTestCase (unittest .TestCase ):
1414 def test_from_empty_response (self ):
15+ # pylint: disable=protected-access
1516 requests_response = requests_lib .Response ()
1617 requests_response .status_code = int (HTTPStatus .OK )
1718 requests_response ._content = b""
@@ -23,6 +24,7 @@ def test_from_empty_response(self):
2324 self .assertEqual ({}, response .headers )
2425
2526 def test_from_plain_text_response (self ):
27+ # pylint: disable=protected-access
2628 requests_response = requests_lib .Response ()
2729 requests_response .status_code = int (HTTPStatus .OK )
2830 requests_response .headers .update ({"content-type" : "text/plain" })
@@ -35,6 +37,7 @@ def test_from_plain_text_response(self):
3537 self .assertEqual ({"content-type" : "text/plain" }, response .headers )
3638
3739 def test_from_json_response (self ):
40+ # pylint: disable=protected-access
3841 test_content = {"foo" : ["bar" , 12345 ], "baz" : True }
3942 requests_response = requests_lib .Response ()
4043 requests_response .status_code = int (HTTPStatus .OK )
@@ -48,6 +51,7 @@ def test_from_json_response(self):
4851 self .assertEqual ({"content-type" : "application/json" }, response .headers )
4952
5053 def test_from_error_json_response (self ):
54+ # pylint: disable=protected-access
5155 test_content = {"error" : "Internal server error" }
5256 requests_response = requests_lib .Response ()
5357 requests_response .status_code = int (HTTPStatus .INTERNAL_SERVER_ERROR )
0 commit comments