diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-09-25 13:48:57 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2021-10-26 14:22:09 +0000 |
commit | b4601d0db20c4ccb933c0264c577fe0df07923c1 (patch) | |
tree | 018c52f4a519214b1424e13b70b21f06ceb78252 /selftest | |
parent | 2311987af25e43596cda5bfa8505e0acfd4477bd (diff) | |
download | samba-b4601d0db20c4ccb933c0264c577fe0df07923c1.tar.gz |
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>
(cherry picked from commit 865fe238599a732360b77e06e592cb85d459acf8)
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/knownfail.d/pyldb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/selftest/knownfail.d/pyldb b/selftest/knownfail.d/pyldb new file mode 100644 index 00000000000..34bdac4f682 --- /dev/null +++ b/selftest/knownfail.d/pyldb @@ -0,0 +1,4 @@ +^ldb.python.api.LdbMsgTests.test_contains_case +^ldb.python.api.LdbMsgTests.test_contains_dn +^ldb.python.api.LdbMsgTests.test_contains_dn_case +^ldb.python.api.LdbMsgTests.test_contains_invalid |