diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-15 16:31:48 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-15 16:31:48 (GMT) |
commit | 37d5cebb4816a96785a85db9dcfd8519f30df18b (patch) | |
tree | ba564ce5b55484586db9790b772f5512890bf900 /Lib | |
parent | f0e521036caea5083e93cd5eca5500b9a1e945ad (diff) | |
download | cpython-37d5cebb4816a96785a85db9dcfd8519f30df18b.zip cpython-37d5cebb4816a96785a85db9dcfd8519f30df18b.tar.gz cpython-37d5cebb4816a96785a85db9dcfd8519f30df18b.tar.bz2 |
Change the builtin hash algorithms' names to lower case names
as promised by hashlib's documentation.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_hashlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index 40cc83a..6d5c5a4 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -233,9 +233,9 @@ class HashLibTestCase(unittest.TestCase): self.assertEqual(m.block_size, block_size) self.assertEqual(m.digest_size, digest_size) self.assertEqual(len(m.digest()), digest_size) - self.assertEqual(m.name.lower(), name.lower()) + self.assertEqual(m.name, name) # split for sha3_512 / _sha3.sha3 object - self.assertIn(name.split("_")[0], repr(m).lower()) + self.assertIn(name.split("_")[0], repr(m)) def test_blocksize_name(self): self.check_blocksize_name('md5', 64, 16) |