def METHOD_NAME(self, params):
    """
    Helper that can be used to register access flags in the system. This is
    used to test the access flags UI since the core does not expose any flags.
    """
    flags = self.getBodyJson()
    for key, info in flags.items():
        registerAccessFlag(key, info['name'], info['description'], info['admin'])