#NEWLINE# @ mock . patch ( 'st2actions.runners.httprunner.requests' ) #NEWLINE# def test_https_verify( self , mock_requests ) : #NEWLINE# #INDENT# url = 'https://127.0.0.1:8888' #NEWLINE# client = HTTPClient ( url = url , verify = True ) #NEWLINE# mock_result = MockResult ( ) #NEWLINE# mock_result . text = 'foo bar ponies' #NEWLINE# mock_result . headers = { #NEWLINE# #INDENT# 'Content-Type' : 'text/html' , #NEWLINE# #UNINDENT# } #NEWLINE# mock_result . status_code = 200 #NEWLINE# mock_requests . request . return_value = self #NEWLINE# client . run ( ) #NEWLINE# self . assertTrue ( client . verify ) #NEWLINE# mock_requests . request . assert_called_with ( 'GET' , url , allow_redirects = False , auth = None , cookies = None , data = '' , files = None , headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , params = None , proxies = None , timeout = 60 , verify = True )