'Make sure an eventlet posthook for notify_image_sent is added.'

def test_show_notify(self):

    req = webob.Request.blank(('/images/%s' % UUID2))
    req.method = 'GET'
    req.context = self.context
    response = webob.Response(request=req)
    response.request.environ['eventlet.posthooks'] = []
    self.serializer.show(response, self.FIXTURE)
    for chunk in response.app_iter:
        pass
    self.assertNotEqual([], response.request.environ['eventlet.posthooks'])
