class documentation

Unit tests for LDAPConfig.

Method testCopy It returns a copy of the configuration.
Method testGetBaseDNNoOption It raise an exception when the the configuration has [ldap] section but no `base` option.
Method testGetBaseDNNoSection It raise an exception when the the configuration has no [ldap] section.
Method testGetBaseDNOK It will return the base DN found in the configuration in the [ldap] section as `base` option.
Method testGetIdentityBaseDNOK It will return the value found in the configuration in the [authentication] section as `identity-base` option.
Method testGetIdentityBaseNoOption When the configuration does not contains the `identity-base` option inside the `[authentication]` section it will return the configured Base DN.
Method testGetIdentityBaseSectionSection When the configuration does not contains the `[authentication]` section it will return the configured Base DN.
Method testgetIdentitySearchFromInitArguments When data is provided at LDAPConfig initialization it is used as the backend data.
Method testGetIdentitySearchNoOption When the configuration file contains the `authentication` section but without the identity search option, it will use a default expression.
Method testGetIdentitySearchNoSection When the configuration file does not contains the `authentication` section it will use a default expression.
Method testGetIdentitySearchOK It will use the value from to configuration for its return value.
def testCopy(self): (source)

It returns a copy of the configuration.

def testGetBaseDNNoOption(self): (source)

It raise an exception when the the configuration has [ldap] section but no `base` option.

def testGetBaseDNNoSection(self): (source)

It raise an exception when the the configuration has no [ldap] section.

def testGetBaseDNOK(self): (source)

It will return the base DN found in the configuration in the [ldap] section as `base` option.

def testGetIdentityBaseDNOK(self): (source)

It will return the value found in the configuration in the [authentication] section as `identity-base` option.

def testGetIdentityBaseNoOption(self): (source)

When the configuration does not contains the `identity-base` option inside the `[authentication]` section it will return the configured Base DN.

def testGetIdentityBaseSectionSection(self): (source)

When the configuration does not contains the `[authentication]` section it will return the configured Base DN.

def testgetIdentitySearchFromInitArguments(self): (source)

When data is provided at LDAPConfig initialization it is used as the backend data.

def testGetIdentitySearchNoOption(self): (source)

When the configuration file contains the `authentication` section but without the identity search option, it will use a default expression.

def testGetIdentitySearchNoSection(self): (source)

When the configuration file does not contains the `authentication` section it will use a default expression.

def testGetIdentitySearchOK(self): (source)

It will use the value from to configuration for its return value.