'Create storage object.'

def create_object(self, container, object_name, data, params=None, metadata=None, headers=None):

    if (headers is None):
        headers = self.get_headers()
    if (not data):
        headers['content-length'] = '0'
    if metadata:
        for key in metadata:
            headers[str(key)] = metadata[key]
    url = ('%s/%s' % (str(container), str(object_name)))
    if params:
        url += ('?%s' % urlparse.urlencode(params))
    (resp, body) = self.put(url, data, headers)
    self.expected_success(201, resp.status)
    return (resp, body)
