code: def assert_operations(self, *args):
          
          if not set(args).issubset(self.allowed_operations):
              raise http.exceptions.Forbidden()
docs: Assets if the requested operations are allowed in this context.