[CalendarServer-changes] [8278] CalendarServer/trunk/twistedcaldav/scheduling/test/test_implicit.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 11 10:23:27 PST 2011
Revision: 8278
http://trac.macosforge.org/projects/calendarserver/changeset/8278
Author: cdaboo at apple.com
Date: 2011-11-11 10:23:26 -0800 (Fri, 11 Nov 2011)
Log Message:
-----------
Some tests should not have been commented out.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/scheduling/test/test_implicit.py
Modified: CalendarServer/trunk/twistedcaldav/scheduling/test/test_implicit.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/test/test_implicit.py 2011-11-11 18:20:57 UTC (rev 8277)
+++ CalendarServer/trunk/twistedcaldav/scheduling/test/test_implicit.py 2011-11-11 18:23:26 UTC (rev 8278)
@@ -28,134 +28,134 @@
def test_removed_attendees(self):
data = (
-# (
-# "#1.1 Simple component, no change",
-# """BEGIN:VCALENDAR
-#VERSION:2.0
-#PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
-#BEGIN:VEVENT
-#UID:12345-67890
-#DTSTART:20080601T120000Z
-#DTEND:20080601T130000Z
-#ORGANIZER;CN="User 01":mailto:user1 at example.com
-#ATTENDEE:mailto:user1 at example.com
-#ATTENDEE:mailto:user2 at example.com
-#END:VEVENT
-#END:VCALENDAR
-#""",
-# """BEGIN:VCALENDAR
-#VERSION:2.0
-#PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
-#BEGIN:VEVENT
-#UID:12345-67890
-#DTSTART:20080601T120000Z
-#DTEND:20080601T130000Z
-#ORGANIZER;CN="User 01":mailto:user1 at example.com
-#ATTENDEE:mailto:user1 at example.com
-#ATTENDEE:mailto:user2 at example.com
-#END:VEVENT
-#END:VCALENDAR
-#""",
-# (),
-# ),
-# (
-# "#1.2 Simple component, one removal",
-# """BEGIN:VCALENDAR
-#VERSION:2.0
-#PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
-#BEGIN:VEVENT
-#UID:12345-67890
-#DTSTART:20080601T120000Z
-#DTEND:20080601T130000Z
-#ORGANIZER;CN="User 01":mailto:user1 at example.com
-#ATTENDEE:mailto:user1 at example.com
-#ATTENDEE:mailto:user2 at example.com
-#END:VEVENT
-#END:VCALENDAR
-#""",
-# """BEGIN:VCALENDAR
-#VERSION:2.0
-#PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
-#BEGIN:VEVENT
-#UID:12345-67890
-#DTSTART:20080601T120000Z
-#DTEND:20080601T130000Z
-#ORGANIZER;CN="User 01":mailto:user1 at example.com
-#ATTENDEE:mailto:user1 at example.com
-#END:VEVENT
-#END:VCALENDAR
-#""",
-# (("mailto:user2 at example.com", None),),
-# ),
-# (
-# "#1.3 Simple component, two removals",
-# """BEGIN:VCALENDAR
-#VERSION:2.0
-#PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
-#BEGIN:VEVENT
-#UID:12345-67890
-#DTSTART:20080601T120000Z
-#DTEND:20080601T130000Z
-#ORGANIZER;CN="User 01":mailto:user1 at example.com
-#ATTENDEE:mailto:user1 at example.com
-#ATTENDEE:mailto:user2 at example.com
-#ATTENDEE:mailto:user3 at example.com
-#END:VEVENT
-#END:VCALENDAR
-#""",
-# """BEGIN:VCALENDAR
-#VERSION:2.0
-#PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
-#BEGIN:VEVENT
-#UID:12345-67890
-#DTSTART:20080601T120000Z
-#DTEND:20080601T130000Z
-#ORGANIZER;CN="User 01":mailto:user1 at example.com
-#ATTENDEE:mailto:user1 at example.com
-#END:VEVENT
-#END:VCALENDAR
-#""",
-# (
-# ("mailto:user2 at example.com", None),
-# ("mailto:user3 at example.com", None),
-# ),
-# ),
-# (
-# "#2.1 Simple recurring component, two removals",
-# """BEGIN:VCALENDAR
-#VERSION:2.0
-#PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
-#BEGIN:VEVENT
-#UID:12345-67890
-#DTSTART:20080601T120000Z
-#DTEND:20080601T130000Z
-#ORGANIZER;CN="User 01":mailto:user1 at example.com
-#ATTENDEE:mailto:user1 at example.com
-#ATTENDEE:mailto:user2 at example.com
-#ATTENDEE:mailto:user3 at example.com
-#RRULE:FREQ=MONTHLY
-#END:VEVENT
-#END:VCALENDAR
-#""",
-# """BEGIN:VCALENDAR
-#VERSION:2.0
-#PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
-#BEGIN:VEVENT
-#UID:12345-67890
-#DTSTART:20080601T120000Z
-#DTEND:20080601T130000Z
-#ORGANIZER;CN="User 01":mailto:user1 at example.com
-#ATTENDEE:mailto:user1 at example.com
-#RRULE:FREQ=MONTHLY
-#END:VEVENT
-#END:VCALENDAR
-#""",
-# (
-# ("mailto:user2 at example.com", None),
-# ("mailto:user3 at example.com", None),
-# ),
-# ),
(
+ "#1.1 Simple component, no change",
+ """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART:20080601T120000Z
+DTEND:20080601T130000Z
+ORGANIZER;CN="User 01":mailto:user1 at example.com
+ATTENDEE:mailto:user1 at example.com
+ATTENDEE:mailto:user2 at example.com
+END:VEVENT
+END:VCALENDAR
+""",
+ """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART:20080601T120000Z
+DTEND:20080601T130000Z
+ORGANIZER;CN="User 01":mailto:user1 at example.com
+ATTENDEE:mailto:user1 at example.com
+ATTENDEE:mailto:user2 at example.com
+END:VEVENT
+END:VCALENDAR
+""",
+ (),
+ ),
+ (
+ "#1.2 Simple component, one removal",
+ """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART:20080601T120000Z
+DTEND:20080601T130000Z
+ORGANIZER;CN="User 01":mailto:user1 at example.com
+ATTENDEE:mailto:user1 at example.com
+ATTENDEE:mailto:user2 at example.com
+END:VEVENT
+END:VCALENDAR
+""",
+ """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART:20080601T120000Z
+DTEND:20080601T130000Z
+ORGANIZER;CN="User 01":mailto:user1 at example.com
+ATTENDEE:mailto:user1 at example.com
+END:VEVENT
+END:VCALENDAR
+""",
+ (("mailto:user2 at example.com", None),),
+ ),
+ (
+ "#1.3 Simple component, two removals",
+ """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART:20080601T120000Z
+DTEND:20080601T130000Z
+ORGANIZER;CN="User 01":mailto:user1 at example.com
+ATTENDEE:mailto:user1 at example.com
+ATTENDEE:mailto:user2 at example.com
+ATTENDEE:mailto:user3 at example.com
+END:VEVENT
+END:VCALENDAR
+""",
+ """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART:20080601T120000Z
+DTEND:20080601T130000Z
+ORGANIZER;CN="User 01":mailto:user1 at example.com
+ATTENDEE:mailto:user1 at example.com
+END:VEVENT
+END:VCALENDAR
+""",
+ (
+ ("mailto:user2 at example.com", None),
+ ("mailto:user3 at example.com", None),
+ ),
+ ),
+ (
+ "#2.1 Simple recurring component, two removals",
+ """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART:20080601T120000Z
+DTEND:20080601T130000Z
+ORGANIZER;CN="User 01":mailto:user1 at example.com
+ATTENDEE:mailto:user1 at example.com
+ATTENDEE:mailto:user2 at example.com
+ATTENDEE:mailto:user3 at example.com
+RRULE:FREQ=MONTHLY
+END:VEVENT
+END:VCALENDAR
+""",
+ """BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:12345-67890
+DTSTART:20080601T120000Z
+DTEND:20080601T130000Z
+ORGANIZER;CN="User 01":mailto:user1 at example.com
+ATTENDEE:mailto:user1 at example.com
+RRULE:FREQ=MONTHLY
+END:VEVENT
+END:VCALENDAR
+""",
+ (
+ ("mailto:user2 at example.com", None),
+ ("mailto:user3 at example.com", None),
+ ),
+ ),
+ (
"#2.2 Simple recurring component, add exdate",
"""BEGIN:VCALENDAR
VERSION:2.0
@@ -755,10 +755,5 @@
scheduler.calendar = Component.fromString(calendar2)
scheduler.extractCalendarData()
scheduler.findRemovedAttendees()
-# if not description.startswith("#4.3"):
-# continue
-# print description
-# print scheduler.cancelledAttendees
-# print set(result)
self.assertEqual(scheduler.cancelledAttendees, set(result), msg=description)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111111/9cf4c30c/attachment.html>
More information about the calendarserver-changes
mailing list