since jsonutils dumps takes care of invalid input  it is better that we construct a raw  faulty input here like this req body os update readonly flag readonly true self assertraises webob exc httpbadrequest  req get response  fakes wsgi app 