'``/VolumeDriver.List`` returns the mount path of the given volume if
it is currently known and an empty mount point for non-local
volumes.'

def test_list(self):

    name = u'myvol'
    remote_name = u'myvol3'
    d = gatherResults([self.flocker_client.create_dataset(self.NODE_A, int(DEFAULT_SIZE.to_Byte()), metadata={NAME_FIELD: name}), self.flocker_client.create_dataset(self.NODE_B, int(DEFAULT_SIZE.to_Byte()), metadata={NAME_FIELD: remote_name})])
    d.addCallback((lambda _: self.flocker_client.synchronize_state()))
    d.addCallback((lambda _: self.flocker_client.list_datasets_configuration()))
    d.addCallback((lambda datasets_config: self.assertResult('POST', '/VolumeDriver.List', {}, OK, {u'Err': u'', u'Volumes': sorted([{u'Name': name, u'Mountpoint': u'/flocker/{}'.format([key for (key, value) in datasets_config.datasets.items() if (value.metadata['name'] == name)][0])}, {u'Name': remote_name, u'Mountpoint': u''}])})))
    return d
