def test_it_raises_if_json_parsing_fails(self):
        request = mock.Mock()

        # Make accessing the request.json_body property raise ValueError.
        type(request).json_body = mock.PropertyMock(side_effect=ValueError)

        with pytest.raises(views.PayloadError):
            views.update(mock.Mock(), request)
Ask the message interactively, with the given possible responses
dataset/ETHPy150Open hypothesis/h/h/api/test/views_test.py/TestUpdate.test_it_raises_if_json_parsing_fails--crossover with--dataset/ETHPy150Open anzev/hedwig/build/pip/pip/utils/__init__.py/ask