[CalendarServer-changes] [12310] twext/trunk/twext/who/ldap/test/test_service.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:21:51 PDT 2014


Revision: 12310
          http://trac.calendarserver.org//changeset/12310
Author:   wsanchez at apple.com
Date:     2014-01-11 13:31:13 -0800 (Sat, 11 Jan 2014)
Log Message:
-----------
Check SSL

Modified Paths:
--------------
    twext/trunk/twext/who/ldap/test/test_service.py

Modified: twext/trunk/twext/who/ldap/test/test_service.py
===================================================================
--- twext/trunk/twext/who/ldap/test/test_service.py	2014-01-11 21:29:12 UTC (rev 12309)
+++ twext/trunk/twext/who/ldap/test/test_service.py	2014-01-11 21:31:13 UTC (rev 12310)
@@ -102,7 +102,9 @@
                 connection.get_option, option
             )
 
+        self.assertFalse(connection.tls_enabled)
 
+
     @inlineCallbacks
     def test_connect_withOptions(self):
         """
@@ -124,7 +126,9 @@
         self.assertEquals(opt(ldap.OPT_X_TLS_CACERTDIR), "/path/to/certdir")
         self.assertEquals(opt(ldap.OPT_DEBUG_LEVEL), 255)
 
+        self.assertTrue(connection.tls_enabled)
 
 
+
 mockDirectoryData = dict(
 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/a7aa5454/attachment.html>


More information about the calendarserver-changes mailing list