Creates new instance of Client with correct options
Invoke method client.upload with correct paths to local and remote file
Expected result:
Local file will be uploaded on WebDAV server
Actual result:
An error was occured
Part of stacktrace:
File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 391, in upload
self.upload_file(local_path=local_path, remote_path=remote_path, progress=progress)
File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 58, in _wrapper
res = fn(self, *args, **kw)
File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 458, in upload_file
data=buff
NameError: global name 'buff' is not defined
Steps to reproduce:
Expected result: Local file will be uploaded on WebDAV server
Actual result: An error was occured
Part of stacktrace:
File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 391, in upload self.upload_file(local_path=local_path, remote_path=remote_path, progress=progress) File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 58, in _wrapper res = fn(self, *args, **kw) File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 458, in upload_file data=buff NameError: global name 'buff' is not defined