summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/python
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-19 19:33:16 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-19 19:37:47 +0200
commit131be8da0fa2db11b91cb08a182a524832db1d41 (patch)
tree5db30c1204c02bdcd8b14f7a8bd6ce9cbdd12ee8 /source4/lib/ldb/tests/python
parent3055ead4cff55895917ca88c3fb91c89da34ad5f (diff)
downloadsamba-131be8da0fa2db11b91cb08a182a524832db1d41.tar.gz
samba-131be8da0fa2db11b91cb08a182a524832db1d41.tar.bz2
samba-131be8da0fa2db11b91cb08a182a524832db1d41.zip
s4:instancetype LDB module - "instanceType" is single-valued - MS-ADTS 3.1.1.5.2.2
Diffstat (limited to 'source4/lib/ldb/tests/python')
-rwxr-xr-xsource4/lib/ldb/tests/python/ldap.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py
index 40cbb9feb3..db1a47ce64 100755
--- a/source4/lib/ldb/tests/python/ldap.py
+++ b/source4/lib/ldb/tests/python/ldap.py
@@ -652,6 +652,15 @@ class BasicTests(unittest.TestCase):
"""Tests the 'instanceType' attribute"""
print "Tests the 'instanceType' attribute"""
+ try:
+ self.ldb.add({
+ "dn": "cn=ldaptestgroup,cn=users," + self.base_dn,
+ "objectclass": "group",
+ "instanceType": ["0", "1"]})
+ self.fail()
+ except LdbError, (num, _):
+ self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
+
self.ldb.add({
"dn": "cn=ldaptestgroup,cn=users," + self.base_dn,
"objectclass": "group"})