def _do_upload_mock_call_helper(self, blob, client, content_type, size):
    self.assertEqual(blob._do_upload.call_count, 1)
    mock_call = blob._do_upload.mock_calls[0]
    (call_name, pos_args, kwargs) = mock_call
    self.assertEqual(call_name, '')
    self.assertEqual(len(pos_args), 5)
    self.assertEqual(pos_args[0], client)
    self.assertEqual(pos_args[2], content_type)
    self.assertEqual(pos_args[3], size)
    self.assertIsNone(pos_args[4])
    self.assertEqual(kwargs, {})
    return pos_args[1]
def _do_upload_mock_call_helper(self, blob, client, content_type, size):
    self.assertEqual(blob._do_upload.call_count, 1)
    mock_call = blob._do_upload.mock_calls[0]
    (call_name, pos_args, kwargs) = mock_call
    self.assertEqual(call_name, )
    self.assertEqual(len(pos_args), 5)
    self.assertEqual(pos_args[0], client)
    self.assertEqual(pos_args[2], content_type)
    self.assertEqual(pos_args[3], size)
    self.assertIsNone(pos_args[4])
    self.assertEqual(kwargs, {})
    return pos_args[1]