#NEWLINE# def test_get_existing( self ) : #NEWLINE# #INDENT# '\n        ``/VolumeDriver.Get`` returns the mount path of the given volume if\n        it is currently known, including for a dataset that was created\n        not by the plugin.\n        ' #NEWLINE# name = 'myvol' #NEWLINE# d = self . flocker_client . create_dataset ( self . NODE_A , int ( DEFAULT_SIZE . to_Byte ( ) ) , metadata = { #NEWLINE# #INDENT# NAME_FIELD : name , #NEWLINE# #UNINDENT# } ) #NEWLINE# def created( dataset ) : #NEWLINE# #INDENT# self . flocker_client . synchronize_state ( ) #NEWLINE# return 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 ( dataset . dataset_id ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# d . addCallback ( created ) #NEWLINE# return d