pyldb: Add tests for ldb.Message containment testing
commit865fe238599a732360b77e06e592cb85d459acf8
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sat, 25 Sep 2021 01:48:57 +0000 (25 13:48 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Sep 2021 09:44:35 +0000 (28 09:44 +0000)
treeb48ed56acb8d4f0b59cacc3fce7dfd0a9916355f
parent22353767ca75af9d9e8fa1e7da372dcb5eddfcb7
pyldb: Add tests for ldb.Message containment testing

These tests verify that the 'in' operator on ldb.Message is consistent
with indexing and the get() method. This means that the 'dn' element
should always be present, lookups should be case-insensitive, and use of
an invalid type should result in a TypeError.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14845

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tests/python/api.py
selftest/knownfail.d/pyldb [new file with mode: 0644]