Created
September 29, 2012 16:26
-
-
Save norrs/3804514 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LDAPTestCase(unittest2.TestCase): | |
def setUp(self): | |
simpleldap.Connection = mock.MagicMock(name='simpleldap.Connection') | |
self.module = LDAP() | |
def test_if_protocol_is_ssl_on_ssl_port(self): | |
self.module.connect('foo', 636, None, 'ldap') | |
self.assertEquals('ldaps', self.module.protocol) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment