diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-19 00:05:34 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-19 00:05:34 +0200 |
commit | ba5fe7122586d8b382bf78f1e1cb5dbe4293c27b (patch) | |
tree | 78159bb1106d63fc0dfb59236fc39240eaabbfac /source4/libcli | |
parent | 6f6e42ce60e3f9adfebffa7db04eafe717942c1b (diff) | |
download | samba-ba5fe7122586d8b382bf78f1e1cb5dbe4293c27b.tar.gz samba-ba5fe7122586d8b382bf78f1e1cb5dbe4293c27b.tar.bz2 samba-ba5fe7122586d8b382bf78f1e1cb5dbe4293c27b.zip |
Add test for Sid.__repr__.
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/security/tests/bindings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/security/tests/bindings.py b/source4/libcli/security/tests/bindings.py index 82ce7aeba8..b539de833d 100644 --- a/source4/libcli/security/tests/bindings.py +++ b/source4/libcli/security/tests/bindings.py @@ -65,6 +65,10 @@ class DomSidTests(unittest.TestCase): sid = security.random_sid() self.assertTrue(str(sid).startswith("S-1-5-21-")) + def test_repr(self): + sid = security.random_sid() + self.assertTrue(repr(sid).startswith("Sid('S-1-5-21-")) + class PrivilegeTests(unittest.TestCase): def test_privilege_name(self): |