def METHOD_NAME(
    self,
    mock_secrets_token_hex: MagicMock,
) -> None:
    """Test changing API and GUI ports."""
    mock_secrets_token_hex.return_value = "this is a mocked token value"
    configuration = Configuration()
    configuration.set_up()
    self.assertEqual(1234, configuration.server_port)
    self.assertEqual(5678, configuration.gui_port)
    self.assertEqual(
        "https://127.0.0.1:5678/?token=this is a mocked token value",
        configuration.get_url(),
    )