Code Repositories xandikos / 925eb6b
Add test for CALDAV:expand. Jelmer Vernooń≥ a month ago
1 changed file(s) with 67 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
163163 BEGIN:VCALENDAR
164164 END:VCALENDAR
165165 """)
166
167 def test_expand(self):
168 expand = ET.SubElement(self.requested, '{%s}expand' % caldav.NAMESPACE)
169 expand.set('start', '20060103T000000Z')
170 expand.set('end', '20060105T000000Z')
171 with self.assertRaises(NotImplementedError):
172 self.extractEqual("""\
173 BEGIN:VCALENDAR
174 VERSION:2.0
175 PRODID:-//Example Corp.//CalDAV Client//EN
176 BEGIN:VTIMEZONE
177 LAST-MODIFIED:20040110T032845Z
178 TZID:US/Eastern
179 BEGIN:DAYLIGHT
180 DTSTART:20000404T020000
181 RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
182 TZNAME:EDT
183 TZOFFSETFROM:-0500
184 TZOFFSETTO:-0400
185 END:DAYLIGHT
186 BEGIN:STANDARD
187 DTSTART:20001026T020000
188 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
189 TZNAME:EST
190 TZOFFSETFROM:-0400
191 TZOFFSETTO:-0500
192 END:STANDARD
193 END:VTIMEZONE
194 BEGIN:VEVENT
195 DTSTAMP:20060206T001121Z
196 DTSTART;TZID=US/Eastern:20060102T120000
197 DURATION:PT1H
198 RRULE:FREQ=DAILY;COUNT=5
199 SUMMARY:Event #2
200 UID:00959BC664CA650E933C892C@example.com
201 END:VEVENT
202 BEGIN:VEVENT
203 DTSTAMP:20060206T001121Z
204 DTSTART;TZID=US/Eastern:20060104T140000
205 DURATION:PT1H
206 RECURRENCE-ID;TZID=US/Eastern:20060104T120000
207 SUMMARY:Event #2 bis
208 UID:00959BC664CA650E933C892C@example.com
209 END:VEVENT
210 END:VCALENDAR
211 """, """\
212 BEGIN:VCALENDAR
213 VERSION:2.0
214 PRODID:-//Example Corp.//CalDAV Client//EN
215 BEGIN:VEVENT
216 DTSTAMP:20060206T001121Z
217 DTSTART:20060103T170000
218 DURATION:PT1H
219 RECURRENCE-ID:20060103T170000
220 SUMMARY:Event #2
221 UID:00959BC664CA650E933C892C@example.com
222 END:VEVENT
223 BEGIN:VEVENT
224 DTSTAMP:20060206T001121Z
225 DTSTART:20060104T190000
226 DURATION:PT1H
227 RECURRENCE-ID:20060104T170000
228 SUMMARY:Event #2 bis
229 UID:00959BC664CA650E933C892C@example.com
230 END:VEVENT
231 END:VCALENDAR
232 """)