def METHOD_NAME(
    click_launch: mock.MagicMock, head: mock.MagicMock, run: mock.MagicMock, port: mock.MagicMock
):
    port.return_value = 1234
    login.Auth()._run_server()
    url = f"{LIGHTNING_CLOUD_URL}/sign-in?redirectTo=http%3A%2F%2Flocalhost%3A1234%2Flogin-complete"  # E501
    head.assert_called_once_with(url)
    click_launch.assert_called_once_with(url)
    run.assert_called_once()