1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-18 00:59:12 +03:00

r26538: Pass path generation function around rather than base directory.

(This used to be commit 5f921af41e)
This commit is contained in:
Jelmer Vernooij
2007-12-19 23:27:38 +01:00
committed by Stefan Metzmacher
parent 6e2459211d
commit c2fffa8335
6 changed files with 164 additions and 148 deletions

View File

@ -23,11 +23,14 @@ import samba.tests
from ldb import Dn
setup_dir = "setup"
def setup_path(file):
return os.path.join(setup_dir, file)
class ProvisionTestCase(samba.tests.TestCaseInTempDir):
def test_setup_secretsdb(self):
ldb = setup_secretsdb(os.path.join(self.tempdir, "secrets.ldb"),
setup_dir, None, None, None)
setup_path, None, None, None)
self.assertEquals("LSA Secrets",
ldb.searchone(Dn(ldb, "CN=LSA Secrets"), "CN"))