[CalendarServer-changes] [9072] 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:45:21 PDT 2012


Revision: 9072
          http://trac.macosforge.org/projects/calendarserver/changeset/9072
Author:   glyph at apple.com
Date:     2012-04-13 11:45:21 -0700 (Fri, 13 Apr 2012)
Log Message:
-----------
Just so.

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:45:15 UTC (rev 9071)
+++ CalendarServer/branches/users/glyph/ipv6-client/twext/internet/test/test_adaptendpoint.py	2012-04-13 18:45:21 UTC (rev 9072)
@@ -249,4 +249,13 @@
         self.assertRaises(RuntimeError, self.connector.stopConnecting)
 
 
+    def test_stopConnectingWhileNotConnected(self):
+        """
+        When the L{IConnector} is told to C{stopConnecting} while it is not
+        connected or connecting, it raises L{RuntimeError}.
+        """
+        self.connectionFails(Failure(ZeroDivisionError()))
+        self.assertRaises(RuntimeError, self.connector.stopConnecting)
 
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120413/dd529e3e/attachment.html>


More information about the calendarserver-changes mailing list