def test_channel_request_with_multiple_messages(self):
    self._mock_channel_service_stub.set_messages({'a': ['hello', 'goodbye']})
    environ = _build_poll_environ('a')
    expected_headers = {
        'Cache-Control': 'no-cache',
        'Content-Length': '5',
        'Content-Type': 'application/json',
    }
    self.assertResponse('200 OK', expected_headers, 'hello',
                        channel.application, environ)
    expected_headers = {
        'Cache-Control': 'no-cache',
        'Content-Length': '7',
        'Content-Type': 'application/json',
    }
    self.assertResponse('200 OK', expected_headers, 'goodbye',
                        channel.application, environ)
Test a channel request with a channel that has multiple messages.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/channel_test.py/DevAppserverChannelTest.test_channel_request_with_multiple_messages