def update(self, request, *args, **kwargs):
        key = kwargs['pk']
        value = request.data.get('value')
        if value is None:
            raise ValidationError({'detail': 'Invalid input. Config value is missing.'})

        # Validate and change value.
        try:
            config[key] = value
        except ConfigNotFound:
            raise Http404
        except ConfigError as e:
            raise ValidationError({'detail': str(e)})

        # Return response.
        return Response({'key': key, 'value': value})
We test the following sequential series of actions:
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/core/views.py/ConfigViewSet.update--crossover with--dataset/ETHPy150Open rcbops/glance-buildpackage/glance/tests/functional/test_ssl.py/TestSSL.test_get_head_simple_post