text: import subprocess
  
  import typer
  from typer.testing import CliRunner
  
  from parameter_types.uuid import tutorial001 as mod
  
  runner = CliRunner()
  
  app = typer.Typer()
  app.command()(mod.main)
  
  
  def test_main():
      result = runner.invoke(app, ["d48edaa6-871a-4082-a196-4daab372d4a1"])
      assert result.exit_code == 0
      assert "USER_ID is d48edaa6-871a-4082-a196-4daab372d4a1" in result.output
      assert "UUID version is: 4" in result.output
  
  
  def test_invalid_uuid():
      result = runner.invoke(app, ["7479706572-72756c6573"])
      assert result.exit_code != 0
      assert (
          'Error: Invalid value for "USER_ID": 7479706572-72756c6573 is not a valid UUID value'
          in result.output
      )
  
  
  def test_script():
      result = subprocess.run(
          ["coverage", "run", mod.__file__, "--help"],
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
          encoding="utf-8",
      )
      assert "Usage" in result.stdout
  