class documentation
class TestLDAPConfig(unittest.TestCase): (source)
Unit tests for LDAPConfig.
Method | test |
It returns a copy of the configuration. |
Method | test |
It raise an exception when the the configuration has [ldap] section but no `base` option. |
Method | test |
It raise an exception when the the configuration has no [ldap] section. |
Method | test |
It will return the base DN found in the configuration in the [ldap] section as `base` option. |
Method | test |
It will return the value found in the configuration in the [authentication] section as `identity-base` option. |
Method | test |
When the configuration does not contains the `identity-base` option inside the `[authentication]` section it will return the configured Base DN. |
Method | test |
When the configuration does not contains the `[authentication]` section it will return the configured Base DN. |
Method | testget |
When data is provided at LDAPConfig initialization it is used as the backend data. |
Method | test |
When the configuration file contains the `authentication` section but without the identity search option, it will use a default expression. |
Method | test |
When the configuration file does not contains the `authentication` section it will use a default expression. |
Method | test |
It will use the value from to configuration for its return value. |
It will return the value found in the configuration in the [authentication] section as `identity-base` option.
When the configuration does not contains the `identity-base` option inside the `[authentication]` section it will return the configured Base DN.
When the configuration does not contains the `[authentication]` section it will return the configured Base DN.
When the configuration file contains the `authentication` section but without the identity search option, it will use a default expression.
When the configuration file does not contains the `authentication` section it will use a default expression.