'create volume in a LSS which is full afterwards.'

@mock.patch.object(helper.DS8KCommonHelper, '_create_lun')
def test_create_volume_but_lss_full_afterwards(self, mock_create_lun):

    self.driver = FakeDS8KProxy(self.storage_info, self.logger, self.exception, self)
    self.driver.setup(self.ctxt)
    vol_type = volume_types.create(self.ctxt, 'VOL_TYPE', {})
    volume = self._create_volume(volume_type_id=vol_type.id)
    mock_create_lun.side_effect = [restclient.LssFullException('LSS    is    full.'), TEST_VOLUME_ID]
    vol = self.driver.create_volume(volume)
    self.assertEqual(TEST_VOLUME_ID, ast.literal_eval(vol['provider_location'])['vol_hex_id'])
