diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-19 16:08:35 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-19 16:08:35 +0000 |
commit | 04bef7fe2ab689a9ab569d5581034e0c02237771 (patch) | |
tree | 5424c21838199982b596b9f5895e0818d4033042 /source4/lib/ldb/tests/python | |
parent | 7f4e4df58de8878b43ff104a70a89b44690534a3 (diff) | |
download | samba-04bef7fe2ab689a9ab569d5581034e0c02237771.tar.gz samba-04bef7fe2ab689a9ab569d5581034e0c02237771.tar.bz2 samba-04bef7fe2ab689a9ab569d5581034e0c02237771.zip |
Fix more tests.
Diffstat (limited to 'source4/lib/ldb/tests/python')
-rwxr-xr-x | source4/lib/ldb/tests/python/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/tests/python/api.py b/source4/lib/ldb/tests/python/api.py index 6832a10bae..cdf9abe9b2 100755 --- a/source4/lib/ldb/tests/python/api.py +++ b/source4/lib/ldb/tests/python/api.py @@ -421,7 +421,7 @@ class LdbMsgTests(unittest.TestCase): self.assertEquals("bar", self.msg.get("foo")[0]) def test_get_unknown(self): - self.assertRaises(KeyError, self.msg.get, "lalalala") + self.assertEquals(None, self.msg.get("lalalala")) class MessageElementTests(unittest.TestCase): @@ -458,6 +458,7 @@ class MessageElementTests(unittest.TestCase): x = ldb.MessageElement(["foo"]) self.assertEquals("foo", x) + class ModuleTests(unittest.TestCase): def test_register_module(self): class ExampleModule: |