def test_sha224_partial_calculation(self):
    'Test sha224 of partial file (1024 bytes).'
    res = tools.compute_file_hash(self.filename, sha='sha224', bytes_to_read=1024)
    self.assertIn(res, ('affa8cb79656a9b6244a079f8af91c9271e382aa9d5aa412b599e169', '486467144e683aefd420d576250c4cc984e6d7bf10c85d36e3d249d2'))
Test sha224 of partial file (1024 bytes).
def test_sha224_partial_calculation(self):
    
    res = tools.compute_file_hash(self.filename, sha='sha224', bytes_to_read=1024)
    self.assertIn(res, ('affa8cb79656a9b6244a079f8af91c9271e382aa9d5aa412b599e169', '486467144e683aefd420d576250c4cc984e6d7bf10c85d36e3d249d2'))