#NEWLINE# def test_sort_with_primary_key( self ) : #NEWLINE# #INDENT# instance = self . plugin . return_value #NEWLINE# instance . get_networks . return_value = [ ] #NEWLINE# self . api . get ( _get_path ( 'networks' ) , { #NEWLINE# #INDENT# 'sort_key' : [ 'name' , 'admin_state_up' , 'id' ] , #NEWLINE# 'sort_dir' : [ 'desc' , 'asc' , 'desc' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# kwargs = self . _get_collection_kwargs ( sorts = [ ( 'name' , False ) , ( 'admin_state_up' , True ) , ( 'id' , False ) ] ) #NEWLINE# instance . get_networks . assert_called_once_with ( mock . ANY , ** kwargs )