'L{server.GzipEncoderFactory} implements the
L{iweb._IRequestEncoderFactory} and its C{encoderForRequest} returns an
instance of L{server._GzipEncoder} which implements
L{iweb._IRequestEncoder}.'

def test_interfaces(self):

    request = server.Request(self.channel, False)
    request.gotLength(0)
    request.requestHeaders.setRawHeaders('Accept-Encoding', ['gzip,deflate'])
    factory = server.GzipEncoderFactory()
    self.assertTrue(verifyObject(iweb._IRequestEncoderFactory, factory))
    encoder = factory.encoderForRequest(request)
    self.assertTrue(verifyObject(iweb._IRequestEncoder, encoder))
