def METHOD_NAME():
    test_data = b"123" * 100
    with NamedTemporaryFile("w+b", delete=False) as tmp_file:
        tmp_file.write(test_data)
    with HashFile(path=tmp_file.name) as hash_file:
        assert hash_file.read(150) == test_data[:len(test_data) // 2]
        assert hash_file.hash.hexdigest() == "44438d46e19c3116a5a782cedac0e7cac379e90cfc85e8603bddc1540099215e"
        assert hash_file.read(150) == test_data[len(test_data) // 2:]
        assert hash_file.hash.hexdigest() == "0728577aecf53fd989cd4c0fc4e2fc73aaa60905fb224d4ca93d8f3eac62feeb"
    assert hash_file.closed
    with HashFile(path=tmp_file.name) as hash_file:
        hash_file.seek(0)
        assert hash_file.read() == test_data
        assert hash_file.hash.hexdigest() == "0728577aecf53fd989cd4c0fc4e2fc73aaa60905fb224d4ca93d8f3eac62feeb"