class_docstr: Tests for `PathPrefixMiddleware`.
class_docstr_tok: ["Tests","for","`","PathPrefixMiddleware","`","."]
code: def _assert_ok(self, response, path, script):
      self.assertEqual(response.status_code, 200)
      actual = json.loads(response.get_data())
      expected = dict(path=path, script=script)
      self.assertEqual(actual, expected)
  
file_path: tensorboard/tensorboard/backend/path_prefix_test.py
imports: import json
  import werkzeug
  from werkzeug import test
  from tensorboard import errors
  from tensorboard import test
  from tensorboard.backend import path_prefix
label_desc: Use image node_id 2 for calling the PathPrefixMiddlewareTest obj's underlying member method code with example usage: obj._assert_ok(response, path, script) without return types