'If a dataset with the given name is created while the
``/VolumeDriver.Create`` call is in flight, the call does not
result in an error.'

def test_create_duplicate_name_race_condition(self):

    name = u'thename'
    def create_after_list():
        del self.flocker_client.list_datasets_configuration
        d = self.flocker_client.create_dataset(self.NODE_A, int(DEFAULT_SIZE.to_Byte()), metadata={NAME_FIELD: name})
        d.addCallback((lambda _: DatasetsConfiguration(tag=u'1234', datasets={})))
        return d
    self.flocker_client.list_datasets_configuration = create_after_list
    return self.create(name)
