[CalendarServer-changes] [8009] CalendarServer/trunk/twistedcaldav/test/test_mail.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 23 10:19:05 PDT 2011
Revision: 8009
http://trac.macosforge.org/projects/calendarserver/changeset/8009
Author: glyph at apple.com
Date: 2011-08-23 10:19:03 -0700 (Tue, 23 Aug 2011)
Log Message:
-----------
Fix test to account for the fact that non-text parts may be attached.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/test/test_mail.py
Modified: CalendarServer/trunk/twistedcaldav/test/test_mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_mail.py 2011-08-23 15:16:28 UTC (rev 8008)
+++ CalendarServer/trunk/twistedcaldav/test/test_mail.py 2011-08-23 17:19:03 UTC (rev 8009)
@@ -562,7 +562,7 @@
expectedTypes = set(["text/plain", "text/html", "text/calendar"])
actualTypes = set([
part.get_content_type() for part in message.walk()
- if not part.get_content_type().startswith("multipart/")
+ if part.get_content_type().startswith("text/")
])
self.assertEquals(actualTypes, expectedTypes)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110823/c6fb4a57/attachment.html>
More information about the calendarserver-changes
mailing list