diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-11 01:55:56 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-11 01:55:56 +0100 |
commit | 2466d2cc5e210a124bb23cb9d2c8d3cc608a7c7f (patch) | |
tree | f02c25c7fff97af57ccfc6f47362b5acaef0d587 /source4/lib/ldb/tests | |
parent | c3695026e1cfac3e835e937ed9343d82500cf197 (diff) | |
download | samba-2466d2cc5e210a124bb23cb9d2c8d3cc608a7c7f.tar.gz samba-2466d2cc5e210a124bb23cb9d2c8d3cc608a7c7f.tar.bz2 samba-2466d2cc5e210a124bb23cb9d2c8d3cc608a7c7f.zip |
ldb/python: Allow comparing a MessageElement to a list or a singleton.
(This used to be commit 1ccbab81d79f83bb419104f2bbaf2ae7b368e90f)
Diffstat (limited to 'source4/lib/ldb/tests')
-rwxr-xr-x | source4/lib/ldb/tests/python/api.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/python/api.py b/source4/lib/ldb/tests/python/api.py index 5ab40106a8..8469e8f3cd 100755 --- a/source4/lib/ldb/tests/python/api.py +++ b/source4/lib/ldb/tests/python/api.py @@ -392,6 +392,12 @@ class MessageElementTests(unittest.TestCase): x = ldb.MessageElement(["foo", "bar"]) self.assertEquals(2, len(x)) + def test_eq(self): + x = ldb.MessageElement(["foo", "bar"]) + self.assertEquals(["foo", "bar"], x) + x = ldb.MessageElement(["foo"]) + self.assertEquals("foo", x) + class ExampleModule: name = "example" |