'Ensure location redaction does not change original metadata'

def test_redact_location(self):

    image_meta = {'size': 3, 'id': '123', 'location': 'http://localhost'}
    redacted_image_meta = {'size': 3, 'id': '123'}
    copy_image_meta = copy.deepcopy(image_meta)
    tmp_image_meta = glance.api.v1.images.redact_loc(image_meta)
    self.assertEqual(image_meta, copy_image_meta)
    self.assertEqual(redacted_image_meta, tmp_image_meta)
