#!/usr/bin/env python3
"""Test reading from stdin with serd-pipe."""
import argparse
import sys
import shlex
import subprocess
import tempfile
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--tool", default="tools/serd-pipe", help="executable")
parser.add_argument("--wrapper", default="", help="executable wrapper")
args = parser.parse_args(sys.argv[1:])
command = shlex.split(args.wrapper) + [
args.tool,
"-B",
"http://example.org",
"-I",
"turtle",
"-",
]
IN_DOCUMENT = "