python-mockldap_0.2.5-1_all.deb


Advertisement

Description

python-mockldap - simple mock implementation of python-ldap

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe amd64
Package name: python-mockldap
Package version: 0.2.5
Package release: 1
Package architecture: all
Package type: deb
Installed size: 100 B
Download size: 14.79 KB
Official Mirror: archive.ubuntu.com
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.

Alternatives

    Download

    Source package: mockldap

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install python-mockldap deb package:
      # sudo apt-get install python-mockldap

    Files

    • /usr/lib/python2.7/dist-packages/mockldap/__init__.py
    • /usr/lib/python2.7/dist-packages/mockldap/filter.py
    • /usr/lib/python2.7/dist-packages/mockldap/ldapobject.py
    • /usr/lib/python2.7/dist-packages/mockldap/recording.py
    • /usr/lib/python2.7/dist-packages/mockldap/tests.py
    • /usr/lib/python2.7/dist-packages/mockldap-0.2.5.egg-info/PKG-INFO
    • /usr/lib/python2.7/dist-packages/mockldap-0.2.5.egg-info/dependency_links.txt
    • /usr/lib/python2.7/dist-packages/mockldap-0.2.5.egg-info/requires.txt
    • /usr/lib/python2.7/dist-packages/mockldap-0.2.5.egg-info/top_level.txt
    • /usr/share/doc/python-mockldap/README
    • /usr/share/doc/python-mockldap/changelog.Debian.gz
    • /usr/share/doc/python-mockldap/copyright

    Changelog

    2015-06-30 - Michael Fladischer <fladi@debian.org> mockldap (0.2.5-1) unstable; urgency=low * New upstream release.

    2015-05-27 - Michael Fladischer <fladi@debian.org> mockldap (0.2.4-1) unstable; urgency=medium * New upstream release. * Drop python3-mockldap binary package as it is not compatible with python3-ldap3 and there is no python3-ldap (Closes: #784645). * Bump Standards-Version to 3.9.6. * Use pypi.debian.net service for uscan. * Change my email address to fladi@debian.org.

    2014-08-28 - Michael Fladischer <FladischerMichael@fladi.at> mockldap (0.2.2-3) unstable; urgency=low * Switch buildsystem to pybuild. * Add dh-python to Build-Depends. * Add src/mockldap.egg-info/requires.txt to d/clean to allow two builds in a row.

    2014-08-27 - Michael Fladischer <FladischerMichael@fladi.at> mockldap (0.2.2-2) unstable; urgency=medium * Use correct package for python_ldap in Python3 by providing d/py3dist-overrides.

    2014-08-21 - Michael Fladischer <FladischerMichael@fladi.at> mockldap (0.2.2-1) unstable; urgency=low * New upstream release. * Add Python3 support. Test are not yet compatible.

    2014-04-23 - Michael Fladischer <FladischerMichael@fladi.at> mockldap (0.2.0-1) unstable; urgency=low * New upstream release.

    2014-04-01 - Michael Fladischer <FladischerMichael@fladi.at> mockldap (0.1.8-1) unstable; urgency=medium * New upstream release (Closes: #741783).

    2014-03-11 - Michael Fladischer <FladischerMichael@fladi.at> mockldap (0.1.7-1) unstable; urgency=low * New upstream release. * Check PGP signature on upstream tarball: + Add signature URL to debian/watch. + Include upstream public PGP key D0FA0E76. + Allow debian/upstream-signing-key.pgp to be included as a binary.

    2013-12-03 - Michael Fladischer <FladischerMichael@fladi.at> mockldap (0.1.4-1) unstable; urgency=low * Initial release (Closes: #730530)

    Advertisement
    Advertisement