#NEWLINE# def test_get( self ) : #NEWLINE# #INDENT# '\n        ``/VolumeDriver.Get`` returns the mount path of the given volume if\n        it is currently known.\n        ' #NEWLINE# name = 'myvol' #NEWLINE# d = self . create ( name ) #NEWLINE# d . addCallback ( ( lambda _ : self . flocker_client . synchronize_state ( ) ) ) #NEWLINE# d . addCallback ( ( lambda _ : self . assertResponseCode ( b'POST' , b'/VolumeDriver.Mount' , { #NEWLINE# #INDENT# 'Name' : name , #NEWLINE# #UNINDENT# } , OK ) ) ) #NEWLINE# d . addCallback ( ( lambda _ : self . flocker_client . list_datasets_configuration ( ) ) ) #NEWLINE# d . addCallback ( ( lambda datasets_config : self . assertResult ( b'POST' , b'/VolumeDriver.Get' , { #NEWLINE# #INDENT# 'Name' : name , #NEWLINE# #UNINDENT# } , OK , { #NEWLINE# #INDENT# 'Err' : '' , #NEWLINE# 'Volume' : { #NEWLINE# #INDENT# 'Name' : name , #NEWLINE# 'Mountpoint' : '/flocker/{}' . format ( datasets_config . datasets . keys ( ) [ 0 ] ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) ) #NEWLINE# return d