How to Install and Uninstall python-mockldap-doc Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 18,2024

1. Install "python-mockldap-doc" package

This guide covers the steps necessary to install python-mockldap-doc on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python-mockldap-doc

2. Uninstall "python-mockldap-doc" package

This is a short guide on how to uninstall python-mockldap-doc on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python-mockldap-doc $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-mockldap-doc package on Ubuntu 21.10 (Impish Indri)

Package: python-mockldap-doc
Architecture: all
Version: 0.3.0-4
Priority: extra
Section: universe/doc
Source: mockldap
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 295
Depends: libjs-sphinxdoc (>= 1.0)
Filename: pool/universe/m/mockldap/python-mockldap-doc_0.3.0-4_all.deb
Size: 38368
MD5sum: c6ae87bb3077ac22144543b2b917af96
SHA1: 265c4897ffa97118d15d840c481980d419ff1254
SHA256: 57bca8a587b28c58f5dec5424401e4cb9f4f8ea7c7e86c2ea6286b5ff98f5524
SHA512: 11e616e1b7c772f5bce71322b38ce3aa5e7a560c8e5ecfe3ace0368a8718afd0134839f83508ffb652ed55405f2b47b7bbfc898813762a7d00ac1191cccfd7bb
Homepage: https://bitbucket.org/psagers/mockldap/
Description-en: simple mock implementation of python-ldap (Documentation)
This project provides a mock replacement for python-ldap. It’s useful for any
project that would like to write unit tests against LDAP code without relying
on a running LDAP server.
.
The goal of mockldap is to provide a mock instance of LDAPObject in response to
any call to ldap.initialize. In the general case, you would register return
values for all LDAPObject calls that you expect the code under test to make.
Your assertions would then verify that the tested code behaved correctly given
this set of return values from the LDAP APIs.
.
As a convenience, the mock LDAPObject isn’t just a dumb mock object. The
typical way to use mockldap is to provide some static directory content and
then let LDAPObject generate real return values. This will only work for simple
LDAP operations–this obviously isn’t a complete Python LDAP server
implementation–but those simple operations tend to cover a lot of cases.
.
This package contains the documentation.
Description-md5: e9ad9934fd2c83512632fac3d483b07b