code: def test_lookup(self):
      # requests does urlencode, so don't worry about the `' '` character!
  
      path = "/mah plot"
      parent = 43
      user = "someone"
      exists = True
      files.lookup(path=path, parent=parent, user=user, exists=exists)
      assert self.request_mock.call_count == 1
      args, kwargs = self.request_mock.call_args
      method, url = args
      expected_params = {
          "path": path,
          "parent": parent,
          "exists": "true",
          "user": user,
      }
      self.assertEqual(method, "get")
      self.assertEqual(
          url, "{}/v2/files/lookup".format(self.plotly_api_domain)
      )
      self.assertEqual(kwargs["params"], expected_params)
  
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 8 for calling the FilesTest obj's underlying member method code with example usage: obj.test_lookup() without return types