r26538: Pass path generation function around rather than base directory.
[ira/wip.git] / source / scripting / python / samba / tests / provision.py
index c8bd99283b781d2494ac9e21dd79c60fe57d5291..bf7182dbd335c4cc26e5cad934c5ea8d9515608e 100644 (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"))