'Tests that the /images/<id> registry API endpoint
returns a 404 for deleted image to non-admin user.'

def test_show_deleted_image_as_nonadmin(self):

    self.get_api_response_ext(http.OK, ('/images/%s' % UUID2), method='DELETE')
    api = test_utils.FakeAuthMiddleware(rserver.API(self.mapper), is_admin=False)
    self.get_api_response_ext(http.NOT_FOUND, ('/images/%s' % UUID2), api=api)
