'Ensure status of queued image is updated (LP bug #1048851)'

def test_delete_queued_updates_status(self):

    request = unit_test_utils.get_fake_request(is_admin=True)
    image = self.db.image_create(request.context, {'status': 'queued'})
    image_id = image['id']
    self.controller.delete(request, image_id)
    image = self.db.image_get(request.context, image_id, force_show_deleted=True)
    self.assertTrue(image['deleted'])
    self.assertEqual('deleted', image['status'])
