From 04bef7fe2ab689a9ab569d5581034e0c02237771 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 19 Dec 2008 16:08:35 +0000 Subject: Fix more tests. --- source4/lib/ldb/tests/python/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/lib/ldb/tests') 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: -- cgit