def test_sha1_partial_calculation(self):
    'Test sha1 of partial file (1024 bytes).'
    res = tools.compute_file_hash(self.filename, sha='sha1', bytes_to_read=1024)
    self.assertIn(res, ('e56fa7bd5cfdf6bb7e2d8649dd9216c03e7271e6', '617ce7d539848885b52355ed597a042dae1e726f'))
Test sha1 of partial file (1024 bytes).
def test_sha1_partial_calculation(self):
    
    res = tools.compute_file_hash(self.filename, sha='sha1', bytes_to_read=1024)
    self.assertIn(res, ('e56fa7bd5cfdf6bb7e2d8649dd9216c03e7271e6', '617ce7d539848885b52355ed597a042dae1e726f'))