File: operations.rst

package info (click to toggle)
mockldap 0.3.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 252 kB
  • sloc: python: 642; makefile: 156
file content (23 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
LDAP Operations
===============

Inside of an individual test, you will be performing some task that involves
LDAP operations and then verifying the outcome. In some cases, you will need to
prepare your mock :class:`~mockldap.LDAPObject` to return specific results for a
given API call.


LDAPObject
----------

.. autoclass:: mockldap.LDAPObject
    :members:

Every LDAP method on :class:`~mockldap.LDAPObject` is actually an instance of
:class:`~mockldap.recording.RecordedMethod`, which allows you to set return
values in advance for different sets of arguments.

.. autoclass:: mockldap.recording.RecordedMethod
    :members:

.. autoexception:: mockldap.SeedRequired