diff options
author | Noel Power <noel.power@suse.com> | 2018-08-11 14:25:26 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-09-03 03:22:22 +0200 |
commit | dd1fce7cdb1d1b05c37409fcb185e3bd6ed88d28 (patch) | |
tree | 8067de350bbd28d3124779f91539633f00fecafb /python | |
parent | 765b17627c0b1475ebb206526d2ee5433dcebb18 (diff) | |
download | samba-dd1fce7cdb1d1b05c37409fcb185e3bd6ed88d28.tar.gz |
python/sambe/tests/samba_tool: PY3 port for tests.samba_tool.group
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/samba_tool/group.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/tests/samba_tool/group.py b/python/samba/tests/samba_tool/group.py index 4f58fdff523..049a7e94d66 100644 --- a/python/samba/tests/samba_tool/group.py +++ b/python/samba/tests/samba_tool/group.py @@ -113,7 +113,7 @@ class GroupCmdTestCase(SambaToolCmdTest): self.assertTrue(len(grouplist) > 0, "no groups found in samdb") for groupobj in grouplist: - name = groupobj.get("samaccountname", idx=0) + name = str(groupobj.get("samaccountname", idx=0)) found = self.assertMatch(out, name, "group '%s' not found" % name) @@ -134,7 +134,7 @@ class GroupCmdTestCase(SambaToolCmdTest): self.assertTrue(len(grouplist) > 0, "no groups found in samdb") for groupobj in grouplist: - name = groupobj.get("samAccountName", idx=0) + name = str(groupobj.get("samAccountName", idx=0)) found = self.assertMatch(out, name, "group '%s' not found" % name) def test_move(self): |