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

Remove length arguments, add tests for unixinfo.GidToSid and unixinfo.UidToSid.

(This used to be commit cae61e32e5)
This commit is contained in:
Jelmer Vernooij
2008-04-08 14:58:38 +02:00
parent 90c8841bef
commit ad823b04da
2 changed files with 9 additions and 3 deletions

View File

@ -26,5 +26,11 @@ class UnixinfoTests(unittest.TestCase):
self.conn = unixinfo.unixinfo("ncalrpc:", get_loadparm())
def test_getpwuid(self):
(count, infos) = self.conn.GetPWUid(1, [0])
self.assertEquals(1, len(infos))
infos = self.conn.GetPWUid(range(512))
self.assertEquals(512, len(infos))
def test_gidtosid(self):
self.conn.GidToSid(1000)
def test_uidtosid(self):
self.conn.UidToSid(1000)