diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-21 23:24:36 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-21 23:24:36 +0100 |
commit | 9a7c64f1dce7560c94df99c45eb5c75903cf0e6b (patch) | |
tree | 3129812aba19c80f567d5ed2fa3ff2d5aacb549e /source4/libcli/security/tests | |
parent | 2227860a793dbde0b41e6ba1a720ac0d161ad784 (diff) | |
download | samba-9a7c64f1dce7560c94df99c45eb5c75903cf0e6b.tar.gz samba-9a7c64f1dce7560c94df99c45eb5c75903cf0e6b.tar.bz2 samba-9a7c64f1dce7560c94df99c45eb5c75903cf0e6b.zip |
Fix comparison in tests now that we use __cmp__ rather than __eq__.
Diffstat (limited to 'source4/libcli/security/tests')
-rw-r--r-- | source4/libcli/security/tests/bindings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/security/tests/bindings.py b/source4/libcli/security/tests/bindings.py index aee18a63b8..2b23ecf05f 100644 --- a/source4/libcli/security/tests/bindings.py +++ b/source4/libcli/security/tests/bindings.py @@ -58,8 +58,8 @@ class DomSidTests(unittest.TestCase): def test_sid_equal(self): sid1 = security.dom_sid("S-1-5-21") sid2 = security.dom_sid("S-1-5-21") - self.assertTrue(sid1.__eq__(sid1)) - self.assertTrue(sid1.__eq__(sid2)) + self.assertEquals(sid1, sid1) + self.assertEquals(sid1, sid2) def test_random(self): sid = security.random_sid() |