summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-19 00:05:34 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-19 00:05:34 +0200
commitba5fe7122586d8b382bf78f1e1cb5dbe4293c27b (patch)
tree78159bb1106d63fc0dfb59236fc39240eaabbfac /source4/libcli
parent6f6e42ce60e3f9adfebffa7db04eafe717942c1b (diff)
downloadsamba-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.py4
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):