def test_md5_partial_calculation(self):
    'Test md5 of partial file (1024 bytes).'
    res = tools.compute_file_hash(self.filename, sha='md5', bytes_to_read=1024)
    self.assertIn(res, ('edf6e1accead082b6b831a0a600704bc', 'be0227b6d490baa49e6d7e131c7f596b'))
Test md5 of partial file (1024 bytes).
def test_md5_partial_calculation(self):
    
    res = tools.compute_file_hash(self.filename, sha='md5', bytes_to_read=1024)
    self.assertIn(res, ('edf6e1accead082b6b831a0a600704bc', 'be0227b6d490baa49e6d7e131c7f596b'))