mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
tests/samba_tool/provision_password_check: follow super inheritance
We were skipping a level in the inheritance chain, which had no effect in this case (no .setUps or .tearDowns were missed) but it would be confusing if the parents ever changed. Note: in python 3, you just call super() with no args, and it works out the right thing. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <noel.power@suse.com>
This commit is contained in:
parent
40bd0a930b
commit
371297a59b
@ -24,7 +24,7 @@ class ProvisionPasswordTestCase(SambaToolCmdTest):
|
||||
"""Test for password validation in domain provision subcommand"""
|
||||
|
||||
def setUp(self):
|
||||
super(SambaToolCmdTest, self).setUp()
|
||||
super(ProvisionPasswordTestCase, self).setUp()
|
||||
self.tempsambadir = os.path.join(self.tempdir, "samba")
|
||||
os.mkdir(self.tempsambadir)
|
||||
|
||||
@ -53,5 +53,5 @@ class ProvisionPasswordTestCase(SambaToolCmdTest):
|
||||
self.assertCmdSuccess(result, out, err)
|
||||
|
||||
def tearDown(self):
|
||||
super(SambaToolCmdTest, self).tearDown()
|
||||
super(ProvisionPasswordTestCase, self).tearDown()
|
||||
shutil.rmtree(self.tempsambadir)
|
||||
|
Loading…
Reference in New Issue
Block a user