#NEWLINE# def _get_mock_connection( self , mock_http_class , auth_url = None ) : #NEWLINE# #INDENT# OpenStackBaseConnection . conn_classes = ( mock_http_class , mock_http_class ) #NEWLINE# if ( self is None ) : #NEWLINE# #INDENT# auth_url = 'https://auth.api.example.com' #NEWLINE# #UNINDENT# OpenStackBaseConnection . auth_url = auth_url #NEWLINE# connection = OpenStackBaseConnection ( * OPENSTACK_PARAMS ) #NEWLINE# connection . _ex_force_base_url = 'https://www.foo.com' #NEWLINE# connection . driver = OpenStack_1_0_NodeDriver ( * OPENSTACK_PARAMS ) #NEWLINE# return connection