def METHOD_NAME(self):
    """initialize() with origins already set should do nothing."""
    co = security.CorsOrigins('cors_origins_ro')
    co.initialize()
    with mock.patch('bodhi.server.security.get_current_registry', side_effect=Exception()):
        # This should not raise the Exception because initialize() won't get called again.
        co.initialize()