python/tests/unix: fix spelling and import of text_type
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 11 Oct 2018 01:43:29 +0000 (14:43 +1300)
committerNoel Power <npower@samba.org>
Thu, 25 Oct 2018 19:45:52 +0000 (21:45 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
python/samba/tests/dcerpc/unix.py

index cfca825c91a8d4c4ede5ef17c9fdf6be59f23e04..77a5c221eab420769e418f4d7341739c0bcb3263 100644 (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)