code: def test_update(self):
      new_filename = "..zzZ ..zzZ"
      files.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/files/hodor:88".format(self.plotly_api_domain)
      )
      self.assertEqual(
          kwargs["data"], '{{"filename": "{}"}}'.format(new_filename)
      )
  
file_path: plotly.py/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py
imports: from __future__ import absolute_import
  from chart_studio.api.v2 import files
  from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase
label_desc: Use image node_id 4 for calling the FilesTest obj's underlying member method code with example usage: obj.test_update() without return types