test_api_base: compare files using sha1
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 26 Nov 2012 15:12:48 +0000 (17:12 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 26 Nov 2012 16:15:44 +0000 (18:15 +0200)
commit2d22a8f0d2b57a65ff6721c7f064d0f90fd0e607
tree057c4a2e64b3fcfc8efe5cba8acd2aa53b283cce
parentd82fb4ccc828f17e0dcb453b218051ece103df65
test_api_base: compare files using sha1

Instead of comparing files all the time using 'filecmp', calculate
sha1 of the image once and compare it to the copies.

This will be needed soon in order to implement compressed files testing - the
'filecmp' module does not accept file-like objects, only file names, so you
cannot feed it a compressed image.

Change-Id: I0c4db36fb89f9c5b8ba5aac116e9f25d9a17b4f6
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
tests/test_api_base.py