def METHOD_NAME(self):
    organization = fixture.get(
        Organization,
        max_concurrent_builds=10,
    )
    project_limited = fixture.get(
        Project,
        max_concurrent_builds=2,
        main_language_project=None,
    )
    project_not_limited = fixture.get(
        Project,
        max_concurrent_builds=None,
        main_language_project=None,
    )
    organization.projects.add(project_limited)
    organization.projects.add(project_not_limited)
    for state in ("triggered", "building", "cloning", "finished", "cancelled"):
        fixture.get(
            Build,
            project=project_limited,
            state=state,
        )
    assert (True, 2, 2) == Build.objects.concurrent(project_limited)
    assert (False, 2, 10) == Build.objects.concurrent(project_not_limited)