[python-ldap] Ldif record parsing
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2398 bytes
Desc: S/MIME Cryptographic Signature
More information about the python-ldap