def METHOD_NAME(app,test_records):
    runner = CliRunner()
    script_info = ScriptInfo(create_app=lambda info: app)
    for record in test_records:
        result = runner.invoke(ownership_cli.list, [record.pid], obj=script_info)
        if result.exit_code != 0:
            print(result.output)
        assert result.exit_code == 0