How to Install and Uninstall python-mockldap-doc Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 18,2024

1. Install "python-mockldap-doc" package

This is a short guide on how to install python-mockldap-doc on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "python-mockldap-doc" package

In this section, we are going to explain the necessary steps to uninstall python-mockldap-doc on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the python-mockldap-doc package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-mockldap-doc
Priority: extra
Section: universe/doc
Installed-Size: 226
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Source: mockldap
Version: 0.2.5-1
Depends: libjs-sphinxdoc (>= 1.0)
Filename: pool/universe/m/mockldap/python-mockldap-doc_0.2.5-1_all.deb
Size: 33442
MD5sum: 9f6f4c200f4174bb95150ca8efc88bf3
SHA1: 732be31a9ab501928cb6dc3df93205ae6e5507ae
SHA256: 51f67008d2cd69327acc11be5313eaec2d4aeb185ec4a2a730547e62086ed6a6
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
Homepage: http://bitbucket.org/psagers/mockldap/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu