Package repoze :: Package who :: Package plugins :: Package ldap :: Module tests
[hide private]

Module tests

source code

Test suite for repoze.who.plugins.ldap

Classes [hide private]
  Base
Base test case for the plugins
    Test cases for the plugins
  TestMakeLDAPAuthenticatorPlugin
Tests for the constructor of the LDAPAuthenticatorPlugin plugin
  TestLDAPAuthenticatorPlugin
Tests for the LDAPAuthenticatorPlugin IAuthenticator plugin
  TestLDAPSearchAuthenticatorPluginNaming
Tests for the LDAPSearchAuthenticatorPlugin IAuthenticator plugin
  TestLDAPAuthenticatorReturnLogin
Tests the LDAPAuthenticatorPlugin IAuthenticator plugin returning login.
  TestLDAPSearchAuthenticatorReturnLogin
Tests the LDAPSearchAuthenticatorPlugin IAuthenticator plugin returning login.
  TestLDAPAuthenticatorPluginStartTls
Tests for the LDAPAuthenticatorPlugin IAuthenticator plugin
  TestMakeLDAPAttributesPlugin
Tests for the constructor of LDAPAttributesPlugin
  TestLDAPAttributesPlugin
Tests for the LDAPAttributesPlugin IMetadata plugin
  TestLDAPConnectionFactory
Tests for make_ldap_connection
  TestLDAPConnection
Connection use tests
    Fixtures
  CustomLDAPAuthenticatorPlugin
Fake class to test that LDAPAuthenticatorPlugin._get_dn can be overriden with no problems
Functions [hide private]
unittest.TestSuite
suite()
Return the test suite.
source code
Variables [hide private]
  __package__ = 'repoze.who.plugins.ldap'
    Fixtures
  base_dn = 'ou=people,dc=example,dc=org'
  fakeuser = {'cn': 'Carla Paola', 'dn': 'uid=carla,ou=people,dc...
Function Details [hide private]

suite()

source code 

Return the test suite.

Returns: unittest.TestSuite
The test suite for the plugin.

Variables Details [hide private]

fakeuser

Value:
{'cn': 'Carla Paola',
 'dn': 'uid=carla,ou=people,dc=example,dc=org',
 'hashedPassword': '{SHA}qvTGHdzF6KLavt4PO0gs2a6pQ00=',
 'mail': 'carla@example.org',
 'password': 'hello',
 'telephone': '39 123 456 789',
 'uid': 'carla'}