'Tests that the translate_cinder_exception decorator is used.'

@mock.patch('nova.volume.cinder.cinderclient')
def test_attachment_update_attachment_no_connector(self, mock_cinderclient):

    mock_cinderclient.return_value.attachments.update.side_effect = cinder_exception.BadRequest(400)
    self.assertRaises(exception.InvalidInput, self.api.attachment_update, self.ctx, uuids.attachment_id, connector=None)
