@staticmethod
def _do_resumable_upload_call1(blob, content_type, data, resumable_url, size=None):
    if (size is None):
        content_range = 'bytes 0-{:d}/*'.format((blob.chunk_size - 1))
    else:
        content_range = 'bytes 0-{:d}/{:d}'.format((blob.chunk_size - 1), size)
    expected_headers = {'content-type': content_type, 'content-range': content_range}
    payload = data[:blob.chunk_size]
    return mock.call('PUT', resumable_url, data=payload, headers=expected_headers)
@staticmethod
def _do_resumable_upload_call1(blob, content_type, data, resumable_url, size=None):
    if (size is None):
        content_range = 'bytes 0-{:d}/*'.format((blob.chunk_size - 1))
    else:
        content_range = 'bytes 0-{:d}/{:d}'.format((blob.chunk_size - 1), size)
    expected_headers = {'content-type': content_type, 'content-range': content_range}
    payload = data[:blob.chunk_size]
    return mock.call('PUT', resumable_url, data=payload, headers=expected_headers)