[CalendarServer-changes] [11885] CalendarServer/branches/users/glyph/whenNotProposed/twext/ enterprise/fixtures.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:16:17 PDT 2014
Revision: 11885
http://trac.calendarserver.org//changeset/11885
Author: glyph at apple.com
Date: 2013-11-04 12:07:31 -0800 (Mon, 04 Nov 2013)
Log Message:
-----------
Return the to-be-returned connection so we can make its result fail to execute.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/whenNotProposed/twext/enterprise/fixtures.py
Modified: CalendarServer/branches/users/glyph/whenNotProposed/twext/enterprise/fixtures.py
===================================================================
--- CalendarServer/branches/users/glyph/whenNotProposed/twext/enterprise/fixtures.py 2013-11-04 20:07:30 UTC (rev 11884)
+++ CalendarServer/branches/users/glyph/whenNotProposed/twext/enterprise/fixtures.py 2013-11-04 20:07:31 UTC (rev 11885)
@@ -546,9 +546,11 @@
"""
Used by tests to queue a successful result for connect().
"""
+ aConnection = FakeConnection(self)
def thunk():
- return FakeConnection(self)
+ return aConnection
self._connectResultQueue.append(thunk)
+ return aConnection
def willFail(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/9a230dd7/attachment.html>
More information about the calendarserver-changes
mailing list