#NEWLINE# def test_emulated_sort_without_sort_field( self ) : #NEWLINE# #INDENT# instance = self . plugin . return_value #NEWLINE# instance . _NeutronPluginBaseV2__native_pagination_support = False #NEWLINE# instance . _NeutronPluginBaseV2__native_sorting_support = False #NEWLINE# instance . get_networks . return_value = [ ] #NEWLINE# api = webtest . TestApp ( router . APIRouter ( ) ) #NEWLINE# api . get ( _get_path ( 'networks' ) , { #NEWLINE# #INDENT# 'sort_key' : [ 'name' , 'status' ] , #NEWLINE# 'sort_dir' : [ 'desc' , 'asc' ] , #NEWLINE# 'fields' : [ 'subnets' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# kwargs = self . _get_collection_kwargs ( skipargs = [ 'sorts' , 'limit' , 'marker' , 'page_reverse' ] , fields = _ArgMatcher ( _list_cmp , [ 'name' , 'status' , 'id' , 'subnets' , 'shared' , 'tenant_id' ] ) ) #NEWLINE# instance . get_networks . assert_called_once_with ( mock . ANY , ** self )