[CalendarServer-changes] [11428] CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/ python/test/test_launchd.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 26 01:19:30 PDT 2013


Revision: 11428
          http://trac.calendarserver.org//changeset/11428
Author:   glyph at apple.com
Date:     2013-06-26 01:19:30 -0700 (Wed, 26 Jun 2013)
Log Message:
-----------
This is the structure I want, I think.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/python/test/test_launchd.py

Modified: CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/python/test/test_launchd.py
===================================================================
--- CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/python/test/test_launchd.py	2013-06-26 08:18:48 UTC (rev 11427)
+++ CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/python/test/test_launchd.py	2013-06-26 08:19:30 UTC (rev 11428)
@@ -306,6 +306,12 @@
         """
         d = json.loads(self.stdout.getContent())
         self.assertIsInstance(d, dict)
+        sockets = d[constants.LAUNCH_JOBKEY_SOCKETS]
+        self.assertEquals(len(sockets), 1)
+        self.assertEqual(['Awesome'], sockets.keys())
+        awesomeSocket = sockets['Awesome']
+        self.assertEqual(len(awesomeSocket), 1)
+        self.assertIsInstance(awesomeSocket[0], int)
 
 
     def tearDown(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130626/3ba2f070/attachment.html>


More information about the calendarserver-changes mailing list