def METHOD_NAME(group, project, build, status, kind, test=None):
    testrun = status.test_run.id
    suite = status.suite
    args = (
        group.slug,
        project.slug,
        build.version,
        testrun,
        suite.slug.replace('/', '$'),
    )
    if test:
        if isinstance(test, Test):
            args = args + (test.name.replace('/', '$'),)
        else:
            args = args + (test.replace('/', '$'),)
    return reverse(kind, args=args)