def expect_dispatch(self, method, headers, path, body, result):

    # webob always adds Host header and optionally adds Content-Length header
    # for requests with non-empty body.
    new_headers = dict(headers)
    new_headers['Host'] = self._host
    if body:
      new_headers['Content-Length'] = str(len(body))

    url = 'http://%s%s' % (self._host, path)
    stub_dispatcher.dispatch(method, new_headers, url, body).AndReturn(result)
If an imported name is redefined by a class statement which also uses
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/gcs_server_test.py/GCSTest.expect_dispatch--crossover with--dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_imports.py/Test.test_redefinedBySubclass