more tests for VTDO

This commit is contained in:
Cedric Boscher 2016-06-15 16:19:31 +02:00
parent a5d5cc8b2c
commit e9948587a9
2 changed files with 9 additions and 9 deletions

View File

@ -20,7 +20,7 @@ RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VTODO
DTSTART;TZID=Europe/Paris:20130901T180000
DTSTART;TZID=Europe/Paris:20130901T220000
DURATION:PT1H
END:VTODO
END:VCALENDAR

View File

@ -389,17 +389,17 @@ class BaseRequests:
answer = self._test_filter(["""
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VTODO">
<C:time-range start="20130801T180000Z" end="20130801T000000Z"/>
<C:time-range start="20130901T160000Z" end="20130901T183000Z"/>
</C:comp-filter>
</C:comp-filter>"""],"todo", events=8)
</C:comp-filter>"""],"todo", events=4)
assert "href>/calendar.ics/todo1.ics</" not in answer
assert "href>/calendar.ics/todo2.ics</" not in answer
assert "href>/calendar.ics/todo3.ics</" not in answer
assert "href>/calendar.ics/todo2.ics</" in answer
assert "href>/calendar.ics/todo3.ics</" in answer
assert "href>/calendar.ics/todo4.ics</" not in answer
assert "href>/calendar.ics/todo5.ics</" not in answer
assert "href>/calendar.ics/todo6.ics</" not in answer
assert "href>/calendar.ics/todo7.ics</" not in answer
assert "href>/calendar.ics/todo8.ics</" in answer
#~ assert "href>/calendar.ics/todo5.ics</" not in answer
#~ assert "href>/calendar.ics/todo6.ics</" not in answer
#~ assert "href>/calendar.ics/todo7.ics</" not in answer
#~ assert "href>/calendar.ics/todo8.ics</" in answer
class TestMultiFileSystem(BaseRequests, BaseTest):