#NEWLINE# def test_list( self ) : #NEWLINE# #INDENT# '\n        ``/VolumeDriver.List`` returns the mount path of the given volume if\n        it is currently known and an empty mount point for non-local\n        volumes.\n        ' #NEWLINE# name = 'myvol' #NEWLINE# remote_name = 'myvol3' #NEWLINE# d = gatherResults ( [ self . flocker_client . create_dataset ( self . NODE_A , int ( DEFAULT_SIZE . to_Byte ( ) ) , metadata = { #NEWLINE# #INDENT# NAME_FIELD : name , #NEWLINE# #UNINDENT# } ) , self . flocker_client . create_dataset ( self . NODE_B , int ( DEFAULT_SIZE . to_Byte ( ) ) , metadata = { #NEWLINE# #INDENT# NAME_FIELD : remote_name , #NEWLINE# #UNINDENT# } ) ] ) #NEWLINE# d . addCallback ( ( lambda _ : self . flocker_client . synchronize_state ( ) ) ) #NEWLINE# d . addCallback ( ( lambda _ : self . flocker_client . list_datasets_configuration ( ) ) ) #NEWLINE# d . addCallback ( ( lambda datasets_config : self . assertResult ( b'POST' , b'/VolumeDriver.List' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , OK , { #NEWLINE# #INDENT# 'Err' : '' , #NEWLINE# 'Volumes' : sorted ( [ { #NEWLINE# #INDENT# 'Name' : name , #NEWLINE# 'Mountpoint' : '/flocker/{}' . format ( [ key for ( key , value ) in datasets_config . datasets . items ( ) if ( value . metadata [ 'name' ] == name ) ] [ 0 ] ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'Name' : remote_name , #NEWLINE# 'Mountpoint' : '' , #NEWLINE# #UNINDENT# } ] ) , #NEWLINE# #UNINDENT# } ) ) ) #NEWLINE# return d