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

Last updated: May 18,2024

1. Install "python-mockldap" package

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

$ sudo apt update $ sudo apt install python-mockldap

2. Uninstall "python-mockldap" package

Learn how to uninstall python-mockldap on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: python-mockldap
Priority: extra
Section: universe/python
Installed-Size: 100
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Source: mockldap
Version: 0.2.5-1
Depends: python-funcparserlib, python-ldap, python-mock, python:any (<< 2.8), python:any (>= 2.7.5-5~)
Suggests: python-mockldap-doc
Filename: pool/universe/m/mockldap/python-mockldap_0.2.5-1_all.deb
Size: 15144
MD5sum: d7126090656592ff35d85f2b7f686c9c
SHA1: dc6569d74696486d8f5fa9a22d0152c5efa1712f
SHA256: 1a76966d47c87b602b24c11bd9d916e7c0132148c9b7a5ea4c217decae3bc1b6
Description-en: simple mock implementation of python-ldap
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.
Description-md5: 9c718307d1eda60ffd0be18d8c71afb7
Homepage: http://bitbucket.org/psagers/mockldap/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu