1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-28 11:42:03 +03:00

Use consistent function names with the standard Python uuid module that is available in >= 2.4.

(This used to be commit 60d458e319)
This commit is contained in:
Jelmer Vernooij
2008-05-11 03:31:26 +02:00
parent 0b5a16abe0
commit 5319d9620b
3 changed files with 7 additions and 7 deletions

View File

@ -29,18 +29,18 @@ import uuid
class SamDBTestCase(TestCaseInTempDir):
def setUp(self):
super(SamDBTestCase, self).setUp()
invocationid = uuid.random()
invocationid = uuid.uuid4()
domaindn = "DC=COM,DC=EXAMPLE"
self.domaindn = domaindn
configdn = "CN=Configuration," + domaindn
schemadn = "CN=Schema," + configdn
domainguid = uuid.random()
policyguid = uuid.random()
domainguid = uuid.uuid4()
policyguid = uuid.uuid4()
setup_path = lambda x: os.path.join("setup", x)
creds = Credentials()
creds.set_anonymous()
domainsid = security.random_sid()
hostguid = uuid.random()
hostguid = uuid.uuid4()
path = os.path.join(self.tempdir, "samdb.ldb")
self.samdb = setup_samdb(path, setup_path, system_session(), creds,
cmdline_loadparm, schemadn, configdn,