adding tests
This commit is contained in:
parent
ecce9ee4fc
commit
6ed471b9d6
@ -376,7 +376,7 @@ class BaseRequests:
|
||||
<C:comp-filter name="VTODO">
|
||||
<C:time-range start="20130801T000000Z" end="20131001T000000Z"/>
|
||||
</C:comp-filter>
|
||||
</C:comp-filter>"""],"todo", events=7)
|
||||
</C:comp-filter>"""],"todo", events=8)
|
||||
assert "href>/calendar.ics/todo1.ics</" in answer
|
||||
assert "href>/calendar.ics/todo2.ics</" in answer
|
||||
assert "href>/calendar.ics/todo3.ics</" in answer
|
||||
@ -384,6 +384,7 @@ class BaseRequests:
|
||||
assert "href>/calendar.ics/todo5.ics</" in answer
|
||||
assert "href>/calendar.ics/todo6.ics</" in answer
|
||||
assert "href>/calendar.ics/todo7.ics</" in answer
|
||||
assert "href>/calendar.ics/todo8.ics</" in answer
|
||||
|
||||
|
||||
answer = self._test_filter(["""
|
||||
@ -391,7 +392,7 @@ class BaseRequests:
|
||||
<C:comp-filter name="VTODO">
|
||||
<C:time-range start="20130901T160000Z" end="20130901T183000Z"/>
|
||||
</C:comp-filter>
|
||||
</C:comp-filter>"""],"todo", events=7)
|
||||
</C:comp-filter>"""],"todo", events=8)
|
||||
assert "href>/calendar.ics/todo1.ics</" not in answer
|
||||
assert "href>/calendar.ics/todo2.ics</" in answer
|
||||
assert "href>/calendar.ics/todo3.ics</" in answer
|
||||
@ -399,7 +400,40 @@ class BaseRequests:
|
||||
assert "href>/calendar.ics/todo5.ics</" not in answer
|
||||
assert "href>/calendar.ics/todo6.ics</" not in answer
|
||||
assert "href>/calendar.ics/todo7.ics</" in answer
|
||||
|
||||
assert "href>/calendar.ics/todo8.ics</" in answer
|
||||
|
||||
answer = self._test_filter(["""
|
||||
<C:comp-filter name="VCALENDAR">
|
||||
<C:comp-filter name="VTODO">
|
||||
<C:time-range start="20130903T160000Z" end="20130901T183000Z"/>
|
||||
</C:comp-filter>
|
||||
</C:comp-filter>"""],"todo", events=1)
|
||||
assert "href>/calendar.ics/todo2.ics</" not in answer
|
||||
|
||||
answer = self._test_filter(["""
|
||||
<C:comp-filter name="VCALENDAR">
|
||||
<C:comp-filter name="VTODO">
|
||||
<C:time-range start="20130903T160000Z" end="20130901T173000Z"/>
|
||||
</C:comp-filter>
|
||||
</C:comp-filter>"""],"todo", events=1)
|
||||
assert "href>/calendar.ics/todo2.ics</" not in answer
|
||||
|
||||
answer = self._test_filter(["""
|
||||
<C:comp-filter name="VCALENDAR">
|
||||
<C:comp-filter name="VTODO">
|
||||
<C:time-range start="20130903T160000Z" end="20130903T173000Z"/>
|
||||
</C:comp-filter>
|
||||
</C:comp-filter>"""],"todo", events=1)
|
||||
assert "href>/calendar.ics/todo3.ics</" not in answer
|
||||
|
||||
answer = self._test_filter(["""
|
||||
<C:comp-filter name="VCALENDAR">
|
||||
<C:comp-filter name="VTODO">
|
||||
<C:time-range start="20130903T180000Z" end="20130903T173000Z"/>
|
||||
</C:comp-filter>
|
||||
</C:comp-filter>"""],"todo", events=1)
|
||||
assert "href>/calendar.ics/todo3.ics</" not in answer
|
||||
|
||||
|
||||
answer = self._test_filter(["""
|
||||
<C:comp-filter name="VCALENDAR">
|
||||
|
Loading…
Reference in New Issue
Block a user