[CalendarServer-changes] [9197] CalendarServer/branches/users/glyph/sharing-api
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 26 17:08:55 PDT 2012
Revision: 9197
http://trac.macosforge.org/projects/calendarserver/changeset/9197
Author: glyph at apple.com
Date: 2012-04-26 17:08:55 -0700 (Thu, 26 Apr 2012)
Log Message:
-----------
look for shared child, not normal child
Modified Paths:
--------------
CalendarServer/branches/users/glyph/sharing-api/txdav/caldav/datastore/test/common.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/sharing-api/
Modified: CalendarServer/branches/users/glyph/sharing-api/txdav/caldav/datastore/test/common.py
===================================================================
--- CalendarServer/branches/users/glyph/sharing-api/txdav/caldav/datastore/test/common.py 2012-04-27 00:08:51 UTC (rev 9196)
+++ CalendarServer/branches/users/glyph/sharing-api/txdav/caldav/datastore/test/common.py 2012-04-27 00:08:55 UTC (rev 9197)
@@ -994,12 +994,15 @@
newCalName = yield cal.shareWithUID(OTHER_HOME_UID, _BIND_MODE_WRITE)
yield self.commit()
normalCal = yield self.calendarUnderTest()
- otherCal = yield self.calendarUnderTest(name=newCalName,
- home=OTHER_HOME_UID)
+ otherHome = yield self.homeUnderTest(name=OTHER_HOME_UID)
+ otherCal = yield otherHome.sharedChildWithName(newCalName)
self.assertNotIdentical(otherCal, None)
self.assertEqual(
- (yield otherCal.calendarObjectWithName("1.ics")).component(),
- (yield normalCal.calendarObjectWithName("1.ics")).component())
+ (yield
+ (yield otherCal.calendarObjectWithName("1.ics")).component()),
+ (yield
+ (yield normalCal.calendarObjectWithName("1.ics")).component())
+ )
@inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120426/d866a7c8/attachment.html>
More information about the calendarserver-changes
mailing list