summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sha.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-30 22:57:08 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-30 22:57:08 (GMT)
commit5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e (patch)
tree41f38aca16748628d53906337f06fdf087f52314 /Lib/test/test_sha.py
parentbe96cf608fa656d7e53144cf85082ed5661e8c13 (diff)
downloadcpython-5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e.zip
cpython-5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e.tar.gz
cpython-5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e.tar.bz2
convert usage of fail* to assert*
Diffstat (limited to 'Lib/test/test_sha.py')
-rw-r--r--Lib/test/test_sha.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_sha.py b/Lib/test/test_sha.py
index 0647db3..6b38435 100644
--- a/Lib/test/test_sha.py
+++ b/Lib/test/test_sha.py
@@ -18,19 +18,19 @@ class SHATestCase(unittest.TestCase):
# Check digest matches the expected value
obj = sha.new(data)
computed = obj.hexdigest()
- self.assert_(computed == digest)
+ self.assertTrue(computed == digest)
# Verify that the value doesn't change between two consecutive
# digest operations.
computed_again = obj.hexdigest()
- self.assert_(computed == computed_again)
+ self.assertTrue(computed == computed_again)
# Check hexdigest() output matches digest()'s output
digest = obj.digest()
hexd = ""
for c in digest:
hexd += '%02x' % ord(c)
- self.assert_(computed == hexd)
+ self.assertTrue(computed == hexd)
def test_case_1(self):
self.check("abc",