'Test verify_metadata raises exception.NotFound for a deleted image'

def test_verify_metadata_deleted_image(self):

    image_meta = {'status': 'deleted', 'is_public': True, 'deleted': True}
    cache_filter = ProcessRequestTestCacheFilter()
    self.assertRaises(exception.NotFound, cache_filter._verify_metadata, image_meta)
