def test_sha1_complete_calculation(self):
    'Test sha1 of complete file.'
    res = tools.compute_file_hash(self.filename, sha='sha1')
    self.assertIn(res, ('1c12696e1119493a625aa818a35c41916ce32d0c', '146121e6d0461916c9a0fab00dc718acdb6a6b14'))
Test sha1 of complete file.
def test_sha1_complete_calculation(self):
    
    res = tools.compute_file_hash(self.filename, sha='sha1')
    self.assertIn(res, ('1c12696e1119493a625aa818a35c41916ce32d0c', '146121e6d0461916c9a0fab00dc718acdb6a6b14'))