diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-08 14:58:38 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-08 14:58:38 +0200 |
commit | ad823b04dab468379c7b42a8b849bb8a310cfb69 (patch) | |
tree | 119a9f8cbad252ed80b4e5af5e9164ea008d6a14 /source4/scripting/python/samba/tests/dcerpc/unix.py | |
parent | 90c8841beff1fe8c492670811aacd3b92e296912 (diff) | |
download | samba-ad823b04dab468379c7b42a8b849bb8a310cfb69.tar.gz samba-ad823b04dab468379c7b42a8b849bb8a310cfb69.tar.bz2 samba-ad823b04dab468379c7b42a8b849bb8a310cfb69.zip |
Remove length arguments, add tests for unixinfo.GidToSid and unixinfo.UidToSid.
(This used to be commit cae61e32e5b61a02c2986b74bd1d7e58460b1e80)
Diffstat (limited to 'source4/scripting/python/samba/tests/dcerpc/unix.py')
-rw-r--r-- | source4/scripting/python/samba/tests/dcerpc/unix.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/tests/dcerpc/unix.py b/source4/scripting/python/samba/tests/dcerpc/unix.py index 99c84c08da..b2577ec898 100644 --- a/source4/scripting/python/samba/tests/dcerpc/unix.py +++ b/source4/scripting/python/samba/tests/dcerpc/unix.py @@ -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) |