mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
convert usage of fail* to assert*
This commit is contained in:
parent
be96cf608f
commit
5c8da86f3a
268 changed files with 5017 additions and 5017 deletions
|
@ -37,12 +37,12 @@ class HashLibTestCase(unittest.TestCase):
|
|||
except ValueError:
|
||||
pass
|
||||
else:
|
||||
self.assert_(0 == "hashlib didn't reject bogus hash name")
|
||||
self.assertTrue(0 == "hashlib didn't reject bogus hash name")
|
||||
|
||||
def test_hexdigest(self):
|
||||
for name in self.supported_hash_names:
|
||||
h = hashlib.new(name)
|
||||
self.assert_(hexstr(h.digest()) == h.hexdigest())
|
||||
self.assertTrue(hexstr(h.digest()) == h.hexdigest())
|
||||
|
||||
def test_large_update(self):
|
||||
aas = 'a' * 128
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue