Tests are fixed

This commit is contained in:
Evgeny Ezhov 2019-10-13 17:17:01 +03:00
parent d4edab9044
commit b663345e9d
7 changed files with 140 additions and 89 deletions

View file

@ -960,6 +960,8 @@ class WebDavXmlUtils:
:return: XML object of response for the remote resource defined by path.
"""
try:
if isinstance(content, str):
content = content.encode('utf-8')
tree = etree.fromstring(content)
responses = tree.findall("{DAV:}response")