def METHOD_NAME(self):
    new_filename = "..zzZ ..zzZ"
    grids.update("hodor:88", body={"filename": new_filename})
    assert self.request_mock.call_count == 1
    args, kwargs = self.request_mock.call_args
    method, url = args
    self.assertEqual(method, "put")
    self.assertEqual(url, "{}/v2/grids/hodor:88".format(self.plotly_api_domain))
    self.assertEqual(kwargs["data"], '{{"filename": "{}"}}'.format(new_filename))