test_api_base: use sha256 instead of sha1
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 16 Sep 2013 09:53:45 +0000 (12:53 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 17 Sep 2013 11:17:28 +0000 (14:17 +0300)
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@intel.com>
tests/test_api_base.py

index a98b9b2cb2ca8e0e41c65e3e35e946a8040b127c..a1c1f0262ff44cf527a45683ed20054fbd3c0abd 100644 (file)
@@ -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