def METHOD_NAME(
    self,
    YouTubeService,
    youtube_service,
    pyramid_request,
    http_service,
    db_session,
    youtube_transcript_service,
):
    returned = factory(sentinel.context, pyramid_request)
    YouTubeService.assert_called_once_with(
        db_session=db_session,
        enabled=pyramid_request.registry.settings["youtube_transcripts"],
        api_key="test_youtube_api_key",
        http_service=http_service,
        youtube_transcript_service=youtube_transcript_service,
    )
    assert returned == youtube_service