Skip to content

Commit

Permalink
More tests for filtering calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed Aug 29, 2017
1 parent ad0b4e5 commit f7d942b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions radicale/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,13 @@ def test_time_range_filter_events(self):
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">
Expand Down

0 comments on commit f7d942b

Please sign in to comment.