#NEWLINE# def test_endpoint_url_is_used_for_cloudtrail( self ) : #NEWLINE# #INDENT# endpoint_url = 'https://mycloudtrail.aws.amazon.com/' #NEWLINE# session = Mock ( ) #NEWLINE# command = CloudTrailValidateLogs ( session ) #NEWLINE# parsed_globals = Mock ( region = 'foo' , verify_ssl = None , endpoint_url = endpoint_url ) #NEWLINE# command . setup_services ( parsed_globals ) #NEWLINE# create_client_calls = session . create_client . call_args_list #NEWLINE# self . assertEqual ( create_client_calls , [ call ( 'cloudtrail' , verify = None , region_name = 'foo' , endpoint_url = endpoint_url ) ] )