[SCM] Samba Shared Repository - branch master updated
Matthieu Patou
mat at samba.org
Mon Jun 20 01:24:01 MDT 2011
The branch, master has been updated
via 29e043a pyldb: add unit test for get(myattribute, defVal)
from a1f04e8 libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 29e043a2080143ea8ed19e5aa7880690b4ec4644
Author: Matthieu Patou <mat at matws.net>
Date: Sat Jun 11 18:09:40 2011 +0400
pyldb: add unit test for get(myattribute, defVal)
Autobuild-User: Matthieu Patou <mat at samba.org>
Autobuild-Date: Mon Jun 20 09:23:15 CEST 2011 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
source4/lib/ldb/tests/python/api.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source4/lib/ldb/tests/python/api.py b/source4/lib/ldb/tests/python/api.py
index a9f68cb..e7658d5 100755
--- a/source4/lib/ldb/tests/python/api.py
+++ b/source4/lib/ldb/tests/python/api.py
@@ -516,6 +516,11 @@ class LdbMsgTests(unittest.TestCase):
self.msg["foo"] = ["bar"]
self.assertEquals("bar", self.msg.get("foo")[0])
+ def test_get_default(self):
+ self.assertEquals(None, self.msg.get("tatayoyo"))
+
+ self.assertEquals("anniecordie", self.msg.get("tatayoyo", "anniecordie"))
+
def test_get_unknown(self):
self.assertEquals(None, self.msg.get("lalalala"))
--
Samba Shared Repository
More information about the samba-cvs
mailing list