From 9a7c64f1dce7560c94df99c45eb5c75903cf0e6b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 21 Dec 2008 23:24:36 +0100 Subject: Fix comparison in tests now that we use __cmp__ rather than __eq__. --- source4/libcli/security/tests/bindings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/libcli/security') 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() -- cgit