

@mock.patch.object(glance.api, 'glance')
def test_image_delete(self, gc):
    request = self.mock_rest_request()
    glance.Image().delete(request, '1')
    gc.image_delete.assert_called_once_with(request, '1')

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/test/api_tests/glance_rest_tests.py ImagesRestTestCase.test_image_delete/original