mirror of
https://github.com/samba-team/samba.git
synced 2025-12-19 12:23:49 +03:00
python: tests: update all super calls to python 3 style in tests
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> [abartlet@samba.org Some python2 style super() calls remain due to being an actual, even if reasonable, behaviour change]
This commit is contained in:
committed by
Andrew Bartlett
parent
e8fda61a57
commit
6ac4833678
@@ -29,7 +29,7 @@ from samba import sites, subnets
|
||||
class BaseSitesCmdTestCase(SambaToolCmdTest):
|
||||
"""Tests for samba-tool sites subnets"""
|
||||
def setUp(self):
|
||||
super(BaseSitesCmdTestCase, self).setUp()
|
||||
super().setUp()
|
||||
self.dburl = "ldap://%s" % os.environ["DC_SERVER"]
|
||||
self.creds_string = "-U%s%%%s" % (os.environ["DC_USERNAME"],
|
||||
os.environ["DC_PASSWORD"])
|
||||
@@ -87,7 +87,7 @@ class SitesCmdTestCase(BaseSitesCmdTestCase):
|
||||
|
||||
class SitesSubnetCmdTestCase(BaseSitesCmdTestCase):
|
||||
def setUp(self):
|
||||
super(SitesSubnetCmdTestCase, self).setUp()
|
||||
super().setUp()
|
||||
self.sitename = "testsite"
|
||||
self.sitename2 = "testsite2"
|
||||
self.samdb.transaction_start()
|
||||
@@ -100,7 +100,7 @@ class SitesSubnetCmdTestCase(BaseSitesCmdTestCase):
|
||||
sites.delete_site(self.samdb, self.config_dn, self.sitename)
|
||||
sites.delete_site(self.samdb, self.config_dn, self.sitename2)
|
||||
self.samdb.transaction_commit()
|
||||
super(SitesSubnetCmdTestCase, self).tearDown()
|
||||
super().tearDown()
|
||||
|
||||
def test_site_subnet_create(self):
|
||||
cidrs = (("10.9.8.0/24", self.sitename),
|
||||
|
||||
Reference in New Issue
Block a user