'Helper function to validate that performing given operation for given
testcase on a volume succeeds.'

def _process_volume(self, operation, testcase, attach_data_type=A.ATTACH_SUCCESS):

    volume = self._create_template_ebs_volume(operation)
    _wait_for_volume_state_change(operation, volume, self._custom_update(operation, testcase, attach_data_type), TIMEOUT)
    return volume
