summaryrefslogtreecommitdiff
path: root/openid
diff options
context:
space:
mode:
authorVlastimil Zíma <vlastimil.zima@nic.cz>2018-01-26 11:13:14 +0100
committerVlastimil Zíma <vlastimil.zima@nic.cz>2018-01-26 14:39:13 +0100
commitbf03ab4f440d76b59330ad423a8213a3b25fbceb (patch)
treefe220402582c80904c8c1f53899d1af21964e660 /openid
parent42523afffd293ea6acc947bf97eaaec093e521ba (diff)
downloadopenid-bf03ab4f440d76b59330ad423a8213a3b25fbceb.tar.gz
Replace failIfEqual
Diffstat (limited to 'openid')
-rw-r--r--openid/test/test_oidutil.py2
-rw-r--r--openid/test/test_server.py4
-rw-r--r--openid/test/test_symbol.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/openid/test/test_oidutil.py b/openid/test/test_oidutil.py
index 3a66850..b64898a 100644
--- a/openid/test/test_oidutil.py
+++ b/openid/test/test_oidutil.py
@@ -153,7 +153,7 @@ class TestSymbol(unittest.TestCase):
self.assertIn(s, d_prime, "%r isn't in %r" % (s, d_prime))
t = oidutil.Symbol("Bar")
- self.failIfEqual(hash(s), hash(t))
+ self.assertNotEqual(hash(s), hash(t))
# XXX: there are more functions that could benefit from being better
diff --git a/openid/test/test_server.py b/openid/test/test_server.py
index 38aa9c0..8fd8ac8 100644
--- a/openid/test/test_server.py
+++ b/openid/test/test_server.py
@@ -1772,7 +1772,7 @@ class TestSignatory(unittest.TestCase, CatchLogs):
new_assoc_handle = sresponse.fields.getArg(OPENID_NS, 'assoc_handle')
self.assertTrue(new_assoc_handle)
- self.failIfEqual(new_assoc_handle, assoc_handle)
+ self.assertNotEqual(new_assoc_handle, assoc_handle)
self.assertEqual(sresponse.fields.getArg(OPENID_NS, 'invalidate_handle'), assoc_handle)
@@ -1805,7 +1805,7 @@ class TestSignatory(unittest.TestCase, CatchLogs):
new_assoc_handle = sresponse.fields.getArg(OPENID_NS, 'assoc_handle')
self.assertTrue(new_assoc_handle)
- self.failIfEqual(new_assoc_handle, assoc_handle)
+ self.assertNotEqual(new_assoc_handle, assoc_handle)
self.assertEqual(sresponse.fields.getArg(OPENID_NS, 'invalidate_handle'), assoc_handle)
diff --git a/openid/test/test_symbol.py b/openid/test/test_symbol.py
index c5db74c..a115937 100644
--- a/openid/test/test_symbol.py
+++ b/openid/test/test_symbol.py
@@ -16,7 +16,7 @@ class SymbolTest(unittest.TestCase):
def test_inequality(self):
x = oidutil.Symbol('xxx')
y = oidutil.Symbol('yyy')
- self.failIfEqual(x, y)
+ self.assertNotEqual(x, y)
def test_selfInequality(self):
x = oidutil.Symbol('xxx')