[bmap-tools] [PATCH 04/20] test_api_base: use sha256 instead of sha1

Artem Bityutskiy dedekind1 at gmail.com
Wed Sep 18 03:38:16 EDT 2013


From: Artem Bityutskiy <artem.bityutskiy at intel.com>

Well, this does not matter in this case at all, but I am going to switch to
SHA256 in BmapCreate, so changing the tests just for consistency.

Change-Id: I930314a20655da88333b1d6e8e177324794c9ba5
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at intel.com>
---
 tests/test_api_base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_api_base.py b/tests/test_api_base.py
index a98b9b2..a1c1f02 100644
--- a/tests/test_api_base.py
+++ b/tests/test_api_base.py
@@ -142,7 +142,7 @@ def _calculate_chksum(file_obj):
     """
 
     file_obj.seek(0)
-    hash_obj = hashlib.new("sha1")
+    hash_obj = hashlib.new("sha256")
 
     chunk_size = 1024*1024
 
-- 
1.8.1.4




More information about the Bmap-tools mailing list