summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-11-19 18:40:01 +0000
committerAndrew M. Kuchling <amk@amk.ca>2006-11-19 18:40:01 +0000
commit9eec51c04ff9d04c74724aa6cd499457b64c75f9 (patch)
treefa0ed53a94e0d597fb6d725ef6eae78d6585a991 /Lib/test
parentcffcc8b195d0086d6089ac4563ac17b4c95471e3 (diff)
downloadcpython-git-9eec51c04ff9d04c74724aa6cd499457b64c75f9.tar.gz
Add a test case of data w/ bytes > 127
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_sha.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_sha.py b/Lib/test/test_sha.py
index 47c540f5ef..ea224e439c 100644
--- a/Lib/test/test_sha.py
+++ b/Lib/test/test_sha.py
@@ -40,6 +40,9 @@ class SHATestCase(unittest.TestCase):
self.check("a" * 1000000,
"34aa973cd4c4daa4f61eeb2bdbad27316534016f")
+ def test_case_4(self):
+ self.check(chr(0xAA) * 80,
+ '4ca0ef38f1794b28a8f8ee110ee79d48ce13be25')
def test_main():
test_support.run_unittest(SHATestCase)