'L{ThrottlingProtocol.writeSequence} is called on the underlying factory.'

def test_writeSequence(self):

    server = Server()
    tServer = TestableThrottlingFactory(task.Clock(), server)
    protocol = tServer.buildProtocol(address.IPv4Address('TCP', '127.0.0.1', 0))
    transport = StringTransportWithDisconnection()
    transport.protocol = protocol
    protocol.makeConnection(transport)
    protocol.writeSequence((['bytes'] * 4))
    self.assertEqual(transport.value(), 'bytesbytesbytesbytes')
    self.assertEqual(tServer.writtenThisSecond, 20)
