[CalendarServer-changes] [9062] CalendarServer/branches/users/glyph/ipv6-client/twext/internet/test/ test_adaptendpoint.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 13 11:44:24 PDT 2012
Revision: 9062
http://trac.macosforge.org/projects/calendarserver/changeset/9062
Author: glyph at apple.com
Date: 2012-04-13 11:44:24 -0700 (Fri, 13 Apr 2012)
Log Message:
-----------
more refactoring
Modified Paths:
--------------
CalendarServer/branches/users/glyph/ipv6-client/twext/internet/test/test_adaptendpoint.py
Modified: CalendarServer/branches/users/glyph/ipv6-client/twext/internet/test/test_adaptendpoint.py
===================================================================
--- CalendarServer/branches/users/glyph/ipv6-client/twext/internet/test/test_adaptendpoint.py 2012-04-13 18:44:19 UTC (rev 9061)
+++ CalendarServer/branches/users/glyph/ipv6-client/twext/internet/test/test_adaptendpoint.py 2012-04-13 18:44:24 UTC (rev 9062)
@@ -160,8 +160,7 @@
notified via C{connectionLost} and C{clientConnectionLost}.
"""
why = Failure(RuntimeError())
- proto = self.endpoint.attempts[0].factory.buildProtocol(object)
- proto.makeConnection(object())
+ proto = self.connectionSucceeds().protocol
proto.connectionLost(why)
self.assertEquals(len(self.factory.built), 1)
self.assertEquals(self.factory.built[0].protocol.lost, [why])
@@ -207,7 +206,7 @@
If the L{IConnector} is told to C{connect} after a connection attempt
has failed, a new connection attempt is started.
"""
- d = self.endpoint.attempts[0].deferred
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120413/d411165e/attachment-0001.html>
More information about the calendarserver-changes
mailing list