[python-ldap] Ldif record parsing

Michael Ströder michael at stroeder.com
Mon Feb 17 19:58:13 CET 2014


Joseph L. Casale wrote:
> I was writing some unit tests for an app and noticed for delete changetype records with
> only an dn and no entry records that LDIFParser.parse only hands the parsed data off to
> handle() if the entry has records. Obviously most of the time this makes sense but as the
> changetype is local to parse(), it's not available even during other cases where an entry
> exists. As a result, tests never fully validate.
> 
> I could simply redefine parse() but I wonder how other people addressed this when
> writing tests?

Module ldif does not support change records at all.

Ciao, Michael.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2398 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20140217/005faca0/attachment.bin>


More information about the python-ldap mailing list