test_api_base: use file name in _calculate_chksum
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 1 Nov 2013 13:17:57 +0000 (15:17 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 1 Nov 2013 15:41:01 +0000 (17:41 +0200)
commitaba20229cd8ebf0eb7cdaeab1ab97c48bebc4b99
tree3e1b992f0652ac792f7fb054fa505a393fbfc82a
parent10fc2e1e204b042d08552114c44825a8cfd8ef5a
test_api_base: use file name in _calculate_chksum

This is a minor clean-up which changes the '_calculate_chksum()' so that it
expects the image to be a path and does not allow for file-like objects. This
is cleaner than seeking the file-like object in this function, which changes
the object state.

This change is rather mechanical, and this is actually a preparation for the
upcoming changes, where I am going to make '_copy_image()' and some other
function generic, and then use them in a new test which I am going to add.

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