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)
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):