trm test_ripemd - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit 963dcf0c6b2829ae9344c15379999ebea4aa8f25 (DIR) parent bb80e330ff3213a09fdc69e210583511f93b7057 (HTM) Author: ThomasV <thomasv@electrum.org> Date: Tue, 26 Jan 2016 15:48:34 +0100 rm test_ripemd Diffstat: D lib/tests/test_ripemd.py | 16 ---------------- 1 file changed, 0 insertions(+), 16 deletions(-) --- (DIR) diff --git a/lib/tests/test_ripemd.py b/lib/tests/test_ripemd.py t@@ -1,16 +0,0 @@ -import unittest -import random -import hashlib - -from lib import ripemd - -class Test_RIPEMD160(unittest.TestCase): - """ Test pure Python implementation against standard library. """ - - def test_ripemd(self): - r = random.Random(0) - for i in range(128): - blob = bytearray([r.randrange(0, 256) for j in range(1024)]) - h = hashlib.new('ripemd160') - h.update(blob) - self.assertEqual(h.hexdigest(), ripemd.new(blob).hexdigest())