[CalendarServer-changes] [6328] CalendarServer/branches/users/glyph/more-deferreds-6/twistedcaldav/ test/test_wrapping.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Sep 21 12:23:04 PDT 2010
Revision: 6328
http://trac.macosforge.org/projects/calendarserver/changeset/6328
Author: glyph at apple.com
Date: 2010-09-21 12:23:03 -0700 (Tue, 21 Sep 2010)
Log Message:
-----------
test transaction propagation
Modified Paths:
--------------
CalendarServer/branches/users/glyph/more-deferreds-6/twistedcaldav/test/test_wrapping.py
Modified: CalendarServer/branches/users/glyph/more-deferreds-6/twistedcaldav/test/test_wrapping.py
===================================================================
--- CalendarServer/branches/users/glyph/more-deferreds-6/twistedcaldav/test/test_wrapping.py 2010-09-21 19:18:57 UTC (rev 6327)
+++ CalendarServer/branches/users/glyph/more-deferreds-6/twistedcaldav/test/test_wrapping.py 2010-09-21 19:23:03 UTC (rev 6328)
@@ -50,6 +50,8 @@
class FakeChanRequest(object):
+ code = 'request-not-finished'
+
def writeHeaders(self, code, headers):
self.code = code
self.headers = headers
@@ -336,17 +338,21 @@
@inlineCallbacks
def test_lookupCalendarObject(self):
"""
- When a L{CalDAVResource} representing an existing calendar object is looked
- up on a L{CalDAVResource} representing a calendar collection, a parallel
- L{CalendarObject} will be created (with a matching FilePath).
+ When a L{CalDAVResource} representing an existing calendar object is
+ looked up on a L{CalDAVResource} representing a calendar collection, a
+ parallel L{CalendarObject} will be created. Its principal collections
+ and transaction should match.
"""
self.populateOneObject("1.ics", event4_text)
+ calendarHome = yield self.getResource("calendars/users/wsanchez")
calDavFileCalendar = yield self.getResource(
"calendars/users/wsanchez/calendar/1.ics"
)
self.commit()
self.assertEquals(calDavFileCalendar._principalCollections,
frozenset([self.principalsResource]))
+ self.assertEquals(calDavFileCalendar._associatedTransaction,
+ calendarHome._associatedTransaction)
@inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100921/f7af9924/attachment.html>
More information about the calendarserver-changes
mailing list