@mock.patch('warnings.warn')
def test_upload_from_file_with_retries(self, mock_warn):
    from google.cloud.storage import blob as blob_module
    self._upload_from_file_helper(num_retries=20)
    mock_warn.assert_called_once_with(blob_module._NUM_RETRIES_MESSAGE, DeprecationWarning)
@mock.patch('warnings.warn')
def test_upload_from_file_with_retries(self, mock_warn):
    from google.cloud.storage import blob as blob_module
    self._upload_from_file_helper(num_retries=20)
    mock_warn.assert_called_once_with(blob_module._NUM_RETRIES_MESSAGE, DeprecationWarning)