def METHOD_NAME(
    self, mock_path, mock_call, mock_exit, mock_pretty_output, _, __
):
    mock_args = mock.MagicMock(restore_defaults=False)
    mock_file_path = mock.MagicMock()
    mock_path.return_value = mock_file_path
    mock_file_path.__truediv__().exists.return_value = False
    gen_site_content(mock_args)
    po_call_args = mock_pretty_output().__enter__().write.call_args_list
    self.assertIn(
        "Generation of portal_config.yml file cancelled", po_call_args[0][0][0]
    )
    gen_site_content(mock_args)
    self.assertIn("portal", mock_call.call_args_list[0][0][0])
    mock_exit.assert_called_with(0)