From: Andrew M. Kuchling Date: Sun, 19 Nov 2006 18:40:01 +0000 (+0000) Subject: Add a test case of data w/ bytes > 127 X-Git-Tag: v2.6a1~2420 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eec51c04ff9d04c74724aa6cd499457b64c75f9;p=thirdparty%2FPython%2Fcpython.git Add a test case of data w/ bytes > 127 --- diff --git a/Lib/test/test_sha.py b/Lib/test/test_sha.py index 47c540f5ef9c..ea224e439c3d 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)