Skip to content

Commit

Permalink
Add tests to reproduce issue #27
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann committed Aug 30, 2023
1 parent 6c53290 commit 032a553
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/icalendar/tests/calendars/issue_27_multiple_periods.ics
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//davmail.sf.net/NONSGML DavMail Calendar V1.1//EN
METHOD:REPLY
BEGIN:VFREEBUSY
DTSTAMP:20120131T123000Z
ORGANIZER:MAILTO:[email protected]
DTSTART:20120101T000000Z
DTEND:20120201T000000Z
UID:null
ATTENDEE:MAILTO:[email protected]
FREEBUSY;FBTYPE=BUSY:20120103T091500Z/20120103T101500Z,20120113T130000Z/20120113T150000Z,20120116T130000Z/20120116T150000Z,20120117T091500Z/20120117T101500Z,20120118T160000Z/20120118T163000Z,20120124T083000Z/20120124T093000Z,20120124T123000Z/20120124T143000Z,20120131T091500Z/20120131T101500Z
END:VFREEBUSY
END:VCALENDAR
11 changes: 11 additions & 0 deletions src/icalendar/tests/test_issue_27_period.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'''Issue #27 - multiple periods
https://github.com/collective/icalendar/issues/27
'''
from icalendar import Calendar

def test_issue_27_multiple_periods(calendars):
free_busy = list(calendars.issue_27_multiple_periods.walk('VFREEBUSY'))
assert len(free_busy) == 1


0 comments on commit 032a553

Please sign in to comment.