summaryrefslogtreecommitdiff
path: root/source4/dsdb/tests/python/ldap.py
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 22:49:08 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 23:09:44 +0100
commit71df279f92dd37a55810ee874e9fce61472c6d14 (patch)
tree2761d352a4831c8fab7466d16fa3ecdff76fb541 /source4/dsdb/tests/python/ldap.py
parent05d1d0d8a627295bbb5c8cb0783ddad50801cdbb (diff)
downloadsamba-71df279f92dd37a55810ee874e9fce61472c6d14.tar.gz
samba-71df279f92dd37a55810ee874e9fce61472c6d14.tar.bz2
samba-71df279f92dd37a55810ee874e9fce61472c6d14.zip
s4:ldap.py - add a test in order to show the operational module fixed
Reviewed by: Tridge
Diffstat (limited to 'source4/dsdb/tests/python/ldap.py')
-rwxr-xr-xsource4/dsdb/tests/python/ldap.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/dsdb/tests/python/ldap.py b/source4/dsdb/tests/python/ldap.py
index d546717da9..e9e5a0a117 100755
--- a/source4/dsdb/tests/python/ldap.py
+++ b/source4/dsdb/tests/python/ldap.py
@@ -2659,6 +2659,20 @@ nTSecurityDescriptor:: """ + desc_base64
self.assertEquals(len(res.controls), 1)
self.assertEquals(res.controls[0].oid, "1.2.840.113556.1.4.319")
+ def test_operational(self):
+ """Tests operational attributes"""
+ print "Tests operational attributes"""
+
+ res = self.ldb.search(self.base_dn, scope=SCOPE_BASE,
+ attrs=["createTimestamp", "modifyTimestamp",
+ "structuralObjectClass", "whenCreated",
+ "whenChanged"])
+ self.assertEquals(len(res), 1)
+ self.assertTrue("createTimestamp" in res[0])
+ self.assertTrue("modifyTimestamp" in res[0])
+ self.assertTrue("structuralObjectClass" in res[0])
+ self.assertTrue("whenCreated" in res[0])
+ self.assertTrue("whenChanged" in res[0])
class BaseDnTests(unittest.TestCase):