1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

python/tests/unix: fix spelling and import of text_type

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
Douglas Bagnall 2018-10-11 14:43:29 +13:00 committed by Noel Power
parent a03804c4fc
commit b3e913ed74

View File

@ -20,7 +20,7 @@
from samba.dcerpc import unixinfo
from samba.tests import RpcInterfaceTestCase
from samba.compat import text_type
class UnixinfoTests(RpcInterfaceTestCase):
@ -32,7 +32,7 @@ class UnixinfoTests(RpcInterfaceTestCase):
infos = self.conn.GetPWUid(range(512))
self.assertEquals(512, len(infos))
self.assertEquals("/bin/false", infos[0].shell)
self.assertTrue(isinstance(infos[0].homedir, txt_type))
self.assertTrue(isinstance(infos[0].homedir, text_type))
def test_gidtosid(self):
self.conn.GidToSid(1000)