diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-18 16:06:46 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-18 17:03:20 +0000 |
commit | 4c666f3e0ada47c793ecdec0e5c3dd0441a69080 (patch) | |
tree | 1c02a3252fdcadfeb5456b5c158171acafeb9801 /source4/dsdb/tests/python/urgent_replication.py | |
parent | b7dab4692200dd7f3bbc600560648b8e0ec47e70 (diff) | |
download | samba-4c666f3e0ada47c793ecdec0e5c3dd0441a69080.tar.gz samba-4c666f3e0ada47c793ecdec0e5c3dd0441a69080.tar.bz2 samba-4c666f3e0ada47c793ecdec0e5c3dd0441a69080.zip |
s4:dsdb python tests - use "ldb.domain_dn"
By inspiration of Nadya's patches
Diffstat (limited to 'source4/dsdb/tests/python/urgent_replication.py')
-rwxr-xr-x | source4/dsdb/tests/python/urgent_replication.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/dsdb/tests/python/urgent_replication.py b/source4/dsdb/tests/python/urgent_replication.py index 2ab8c5422e..88cef4dfad 100755 --- a/source4/dsdb/tests/python/urgent_replication.py +++ b/source4/dsdb/tests/python/urgent_replication.py @@ -48,16 +48,10 @@ class UrgentReplicationTests(samba.tests.TestCase): except LdbError, (num, _): self.assertEquals(num, ERR_NO_SUCH_OBJECT) - def find_basedn(self, ldb): - res = ldb.search(base="", expression="", scope=SCOPE_BASE, - attrs=["defaultNamingContext"]) - self.assertEquals(len(res), 1) - return res[0]["defaultNamingContext"][0] - def setUp(self): super(UrgentReplicationTests, self).setUp() self.ldb = ldb - self.base_dn = self.find_basedn(ldb) + self.base_dn = ldb.domain_dn() print "baseDN: %s\n" % self.base_dn |