Did I find the right examples for you? yes no

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)
A dummy HTTP channel, that does nothing but holds a transport and saves
connection lost.

@ivar transport: the transport used by the client.
@ivar lostReason: the reason saved at connection lost.

src/t/u/turtle-0.0.2/turtle/test/test_proxy.py   turtle(Download)
from turtle import proxy
 
from twisted.web.test.test_proxy import FakeReactor, DummyParent, DummyChannel
 
class TestEngine(unittest.TestCase):
        """
        transport = StringTransportWithDisconnection()
        channel = DummyChannel(transport)
        reactor = FakeReactor()
        proxy_factory = proxy.TurtleHTTPFactory({}, False, reactor)
        """
        transport = StringTransportWithDisconnection()
        channel = DummyChannel(transport)
        reactor = FakeReactor()
        proxy_factory = proxy.TurtleHTTPFactory({}, False, reactor)
        transport = StringTransportWithDisconnection()
        transport.protocol = LineSendingProtocol([], False)
        channel = DummyChannel(transport)
        reactor = FakeReactor()
 

src/t/u/turtl-0.1.1/turtl/test/test_proxy.py   turtl(Download)
from turtl import proxy
 
from twisted.web.test.test_proxy import FakeReactor, DummyParent, DummyChannel
 
class TestEngine(unittest.TestCase):
        """
        transport = StringTransportWithDisconnection()
        channel = DummyChannel(transport)
        reactor = FakeReactor()
        proxy_factory = proxy.TurtlHTTPFactory({}, False, reactor)
        """
        transport = StringTransportWithDisconnection()
        channel = DummyChannel(transport)
        reactor = FakeReactor()
        proxy_factory = proxy.TurtlHTTPFactory({}, False, reactor)
        transport = StringTransportWithDisconnection()
        transport.protocol = LineSendingProtocol([], False)
        channel = DummyChannel(transport)
        reactor = FakeReactor()