def test_dispatch(self):
    result = FakeResult(404, {'a': 'b'}, 'blah')
    self.expect_dispatch('POST',
                         {'Foo': 'bar'},
                         '/_ah/gcs/some_bucket?param=1',
                         'body', result)

    self.run_request('POST',
                     {'Foo': 'bar'},
                     '/_ah/gcs/some_bucket',
                     'param=1',
                     'body',
                     '404 Not Found',
                     [('a', 'b')],
                     'blah')
Tests that dispatch stub is called with the correct parameters.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/gcs_server_test.py/GCSTest.test_dispatch