1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

python:tests: Remove unused variables

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-04-13 07:47:39 +12:00 committed by Andrew Bartlett
parent 2a8db07293
commit 8d6e447340

View File

@ -435,8 +435,8 @@ class UserCmdTestCase(SambaToolCmdTest):
for userobj in userlist:
name = str(userobj.get("samaccountname", idx=0))
found = self.assertMatch(out, name,
"user '%s' not found" % name)
self.assertMatch(out, name,
"user '%s' not found" % name)
def test_list_base_dn(self):
@ -459,8 +459,8 @@ class UserCmdTestCase(SambaToolCmdTest):
for userobj in userlist:
name = str(userobj.get("samaccountname", idx=0))
found = self.assertMatch(out, name,
"user '%s' not found" % name)
self.assertMatch(out, name,
"user '%s' not found" % name)
def test_list_full_dn(self):
(result, out, err) = self.runsubcmd("user", "list", "--full-dn",
@ -481,8 +481,8 @@ class UserCmdTestCase(SambaToolCmdTest):
for userobj in userlist:
name = str(userobj.get("dn", idx=0))
found = self.assertMatch(out, name,
"user '%s' not found" % name)
self.assertMatch(out, name,
"user '%s' not found" % name)
def test_list_hide_expired(self):
expire_username = "expireUser"