def setUp(self):
     self.device_delegate = TestRegisterRequest.FakeDeviceDelegate()
     self.factory = TestRegisterRequest.FakeFactory(
         self.device_delegate)
     self.transport = StringTransport()
     self.protocol = HTTP11ClientProtocol()
     self.protocol.makeConnection(self.transport)
Example #2
0
 def __init__(self, owner):
     if hasattr(HTTP11ClientProtocol, '__init__'):
         HTTP11ClientProtocol.__init__(self)
     self.owner = owner
Example #3
0
 def __init__(self, req, deferred):
     if hasattr(HTTP11ClientProtocol, '__init__') :
         HTTP11ClientProtocol.__init__(self)
     self.req = req
     self.deferred = deferred
Example #4
0
 def __init__(self, owner):
     if hasattr(HTTP11ClientProtocol, '__init__'):
         HTTP11ClientProtocol.__init__(self)
     self.owner = owner
Example #5
0
 def __init__(self, req, deferred):
     if hasattr(HTTP11ClientProtocol, '__init__'):
         HTTP11ClientProtocol.__init__(self)
     self.req = req
     self.deferred = deferred
Example #6
0
	def __init__(self, factory):
		if hasattr(HTTP11ClientProtocol, '__init__'):
			# fix for cygwin twisted distribution
			HTTP11ClientProtocol.__init__(self)
		self.factory = factory
Example #7
0
 def buildProtocol(self, addr):
     return HTTP11ClientProtocol(self._quiescentCallback)