'If there are multiple I{Accept-Encoding} header,
L{server.GzipEncoderFactory} reads them properly to detect if gzip is
supported.'

def test_multipleAccept(self):

    request = server.Request(self.channel, False)
    request.gotLength(0)
    request.requestHeaders.setRawHeaders('Accept-Encoding', ['deflate', 'gzip'])
    request.requestReceived('GET', '/foo', 'HTTP/1.0')
    data = self.channel.transport.written.getvalue()
    self.assertNotIn('Content-Length', data)
    self.assertIn('Content-Encoding:    gzip\r\n', data)
    body = data[(data.find('\r\n\r\n') + 4):]
    self.assertEqual('Some    data', zlib.decompress(body, (16 + zlib.MAX_WBITS)))
