def test_hash_file_for_md5(self):
    data = b'Mary had a little lamb, its fleece as white as snow'
    file_like_object = six.BytesIO(data)
    expected = hashlib.md5(data).hexdigest()
    actual = utils.hash_file(file_like_object)
    self.assertEqual(expected, actual)
def test_hash_file_for_md5(self):
    data = b'Mary had a little lamb, its fleece as white as snow'
    file_like_object = six.BytesIO(data)
    expected = hashlib.md5(data).hexdigest()
    actual = utils.hash_file(file_like_object)
    self.assertEqual(expected, actual)