Git Product home page Git Product logo

dataflake.fakeldap's Introduction

Unit test status Coverage Status Documentation Status PyPI Python versions

dataflake.fakeldap

This package offers a mock python-ldap library that can be used for testing code relying on python-ldap without having to configure and populate a real directory server.

Starting with version 3.0 the library will behave just like python-ldap version 3.3 or higher:

  • distinguished names, relative distinguished names, attribute names and queries are expected to be native un-encoded string values.
  • attribute values are expected to be bytes values.

If you pass the wrong type of string, the library will raise a TypeError. See https://www.python-ldap.org/en/latest/bytes_mode.html for a short description of this behavior.

Since queries are un-encoded string values and attribute values passed in the query would never match bytes values in the data store, searches will always test against both unencoded and bytes values.

dataflake.fakeldap's People

Contributors

dataflake avatar majuscule avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.