Fixed tests regarding new WebDAV sync responses

pull/13/head
Ludovic Marcotte 2013-09-25 08:46:34 -04:00
parent d2b739d261
commit 744610dbe1
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ class DAVCalendarSuperUserAclTest(unittest.TestCase):
["{urn:ietf:params:xml:ns:caldav}calendar-data"])
self.client.execute(sync_query)
if sync_query.response["status"] != 404:
event = self._calendarDataInMultistatus(sync_query, "{DAV:}sync-response")
event = self._calendarDataInMultistatus(sync_query, "{DAV:}response")
return event
@ -581,7 +581,7 @@ class DAVCalendarAclTest(DAVAclTest):
self.subscriber_client.execute(sync_query)
if sync_query.response["status"] != 404:
event = self._calendarDataInMultistatus(sync_query, url,
"{DAV:}sync-response")
"{DAV:}response")
return event

View File

@ -43,7 +43,7 @@ def changedItemsFromCollection(client, collection, synctoken=None):
doc = syncquery.response["document"]
# extract all hrefs
for syncResponse in doc.iter("{DAV:}sync-response"):
for syncResponse in doc.iter("{DAV:}response"):
href = syncResponse.find("{DAV:}href")
if href is not None:
hrefs.append(href.text)