@staticmethod
def _do_resumable_upload_call0(blob, content_type, size=None):
    upload_url = (('https://www.googleapis.com/upload/storage/v1' + blob.bucket.path) + '/o?uploadType=resumable')
    expected_headers = {'content-type': 'application/json; charset=UTF-8', 'x-upload-content-type': content_type}
    if (size is not None):
        expected_headers['x-upload-content-length'] = str(size)
    payload = json.dumps({'name': blob.name}).encode('utf-8')
    return mock.call('POST', upload_url, data=payload, headers=expected_headers)
@staticmethod
def _do_resumable_upload_call0(blob, content_type, size=None):
    upload_url = (('https://www.googleapis.com/upload/storage/v1' + blob.bucket.path) + '/o?uploadType=resumable')
    expected_headers = {'content-type': 'application/json; charset=UTF-8', 'x-upload-content-type': content_type}
    if (size is not None):
        expected_headers['x-upload-content-length'] = str(size)
    payload = json.dumps({'name': blob.name}).encode('utf-8')
    return mock.call('POST', upload_url, data=payload, headers=expected_headers)