More tests for filtering calendars

This commit is contained in:
Unrud 2017-08-29 20:08:37 +02:00
parent ad0b4e5e85
commit f7d942bfeb

View File

@ -762,6 +762,13 @@ class BaseRequestsMixIn:
assert "href>/calendar.ics/event3.ics</" in answer
assert "href>/calendar.ics/event4.ics</" in answer
assert "href>/calendar.ics/event5.ics</" in answer
answer = self._test_filter(["""
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VTODO">
<C:time-range start="20130801T000000Z" end="20131001T000000Z"/>
</C:comp-filter>
</C:comp-filter>"""], "event", items=range(1, 6))
assert "href>/calendar.ics/event1.ics</" not in answer
answer = self._test_filter(["""
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">