diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-11 03:31:26 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-11 03:31:26 +0200 |
commit | 5319d9620b9ef68b3687d76aeaba5fa5d5c57a18 (patch) | |
tree | e82b70c82944de072575b42cd932fcfac772fcbb /source4/scripting/python/samba/tests/samdb.py | |
parent | 0b5a16abe03ee582e3d2d7bf41ed5a0f224f95cb (diff) | |
download | samba-5319d9620b9ef68b3687d76aeaba5fa5d5c57a18.tar.gz samba-5319d9620b9ef68b3687d76aeaba5fa5d5c57a18.tar.xz samba-5319d9620b9ef68b3687d76aeaba5fa5d5c57a18.zip |
Use consistent function names with the standard Python uuid module that is available in >= 2.4.
(This used to be commit 60d458e3195eef6baf655fee0da7c3f68517e8e6)
Diffstat (limited to 'source4/scripting/python/samba/tests/samdb.py')
-rw-r--r-- | source4/scripting/python/samba/tests/samdb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/tests/samdb.py b/source4/scripting/python/samba/tests/samdb.py index 0e175bf936a..9da33585272 100644 --- a/source4/scripting/python/samba/tests/samdb.py +++ b/source4/scripting/python/samba/tests/samdb.py @@ -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, |