'Tests that image metadata is deleted properly'

def test_image_destroy(self):

    orig_num_images = len(self.client.image_get_all())
    image = self.FIXTURES[1]
    deleted_image = self.client.image_destroy(image_id=image['id'])
    self.assertTrue(deleted_image)
    self.assertEqual(image['id'], deleted_image['id'])
    self.assertTrue(deleted_image['deleted'])
    self.assertTrue(deleted_image['deleted_at'])
    filters = {'deleted': False}
    new_num_images = len(self.client.image_get_all(filters=filters))
    self.assertEqual(new_num_images, (orig_num_images - 1))
