'Copy storage object\'s data to the new object using PUT.'

def copy_object_across_containers(self, src_container, src_object_name, dst_container, dst_object_name, metadata=None):

    url = '{0}/{1}'.format(dst_container, dst_object_name)
    headers = {}
    headers['X-Copy-From'] = ('%s/%s' % (str(src_container), str(src_object_name)))
    headers['content-length'] = '0'
    if metadata:
        for key in metadata:
            headers[str(key)] = metadata[key]
    (resp, body) = self.put(url, None, headers=headers)
    self.expected_success(201, resp.status)
    return (resp, body)
