[CalendarServer-changes] [9499] CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/ test_wrapping.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 26 11:35:25 PDT 2012


Revision: 9499
          http://trac.macosforge.org/projects/calendarserver/changeset/9499
Author:   gaya at apple.com
Date:     2012-07-26 11:35:24 -0700 (Thu, 26 Jul 2012)
Log Message:
-----------
in test_attachmentQuotaExceeded(), patch asShared()

Modified Paths:
--------------
    CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/test_wrapping.py

Modified: CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/test_wrapping.py
===================================================================
--- CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/test_wrapping.py	2012-07-26 18:27:26 UTC (rev 9498)
+++ CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/test_wrapping.py	2012-07-26 18:35:24 UTC (rev 9499)
@@ -53,6 +53,7 @@
 from twistedcaldav.directory.test.test_xmlfile import XMLFileBase
 from txdav.caldav.icalendarstore import ICalendarHome
 from txdav.carddav.iaddressbookstore import IAddressBookHome
+from txdav.caldav.datastore.file import Calendar
 
 
 
@@ -399,6 +400,8 @@
         Exceeding quota on an attachment returns an HTTP error code.
         """
         self.patch(config, "EnableDropBox", True)
+        self.patch(Calendar, "asShared", lambda self: [])
+
         yield self.populateOneObject("1.ics", test_event_text)
         calendarObject = yield self.getResource(
             "/calendars/users/wsanchez/dropbox/uid-test.dropbox/too-big-attachment",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120726/ad542186/attachment.html>


More information about the calendarserver-changes mailing list