def METHOD_NAME(self):
    assert options.get_last_update_channel("auth.allow-registration") is None
    self.login_as(user=self.user, superuser=True)
    self.add_user_permission(self.user, "options.admin")
    response = self.client.put(self.url, {"auth.allow-registration": 1})
    assert response.status_code == 200
    assert (
        options.get_last_update_channel("auth.allow-registration")
        == options.UpdateChannel.APPLICATION
    )