mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
pytests/samba3sam: unshadow and fix a search_non_mapped test
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Fri Oct 26 00:50:37 CEST 2018 on sn-devel-144
This commit is contained in:
committed by
Noel Power
parent
654cc08cf0
commit
adf73d34a3
@ -154,9 +154,9 @@ class Samba3SamTestCase(MapBaseTestCase):
|
||||
"""Looking up by non-mapped attribute"""
|
||||
msg = self.ldb.search(expression="(cn=Administrator)")
|
||||
self.assertEquals(len(msg), 1)
|
||||
self.assertEquals(msg[0]["cn"], "Administrator")
|
||||
self.assertEquals(str(msg[0]["cn"]), "Administrator")
|
||||
|
||||
def test_search_non_mapped(self):
|
||||
def test_search_mapped(self):
|
||||
"""Looking up by mapped attribute"""
|
||||
msg = self.ldb.search(expression="(name=Backup Operators)")
|
||||
self.assertEquals(len(msg), 1)
|
||||
|
Reference in New Issue
Block a user