1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00

s4:ldap.py - add a test in order to show the operational module fixed

Reviewed by: Tridge
This commit is contained in:
Matthias Dieter Wallnöfer
2011-03-04 22:49:08 +01:00
parent 05d1d0d8a6
commit 71df279f92

View File

@ -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):