[CalendarServer-changes] [12579] CalendarServer/trunk/txdav/dps/test/test_client.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:24:48 PDT 2014


Revision: 12579
          http://trac.calendarserver.org//changeset/12579
Author:   sagen at apple.com
Date:     2014-02-05 14:23:33 -0800 (Wed, 05 Feb 2014)
Log Message:
-----------
More comments

Modified Paths:
--------------
    CalendarServer/trunk/txdav/dps/test/test_client.py

Modified: CalendarServer/trunk/txdav/dps/test/test_client.py
===================================================================
--- CalendarServer/trunk/txdav/dps/test/test_client.py	2014-02-05 22:21:13 UTC (rev 12578)
+++ CalendarServer/trunk/txdav/dps/test/test_client.py	2014-02-05 22:23:33 UTC (rev 12579)
@@ -32,12 +32,18 @@
 class DPSClientTest(unittest.TestCase):
 
     def setUp(self):
+
+        # The "local" directory service
+        self.directory = DirectoryService(None)
+
+        # The "remote" directory service
         path = os.path.join(os.path.dirname(__file__), "test.xml")
         remoteDirectory = XMLDirectoryService(FilePath(path))
+
+        # Connect the two services directly via an IOPump
         client = AMP()
         server = DirectoryProxyAMPProtocol(remoteDirectory)
         pump = returnConnected(server, client)
-        self.directory = DirectoryService(None)
 
         # Replace the normal _getConnection method with one that bypasses any
         # actual networking
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/79abfead/attachment.html>


More information about the calendarserver-changes mailing list