Пример #1
0
 def test_doStop(self):
     """
     L{_WrappingFactory.doStop} passes through to the wrapped factory's
     C{doStop} method, allowing application-specific cleanup and logging.
     """
     factory = ClientFactory()
     factory.numPorts = 3
     wf = endpoints._WrappingFactory(factory)
     wf.doStop()
     self.assertEqual(2, factory.numPorts)
Пример #2
0
 def test_doStop(self):
     """
     L{_WrappingFactory.doStop} passes through to the wrapped factory's
     C{doStop} method, allowing application-specific cleanup and logging.
     """
     factory = ClientFactory()
     factory.numPorts = 3
     wf = endpoints._WrappingFactory(factory)
     wf.doStop()
     self.assertEqual(2, factory.numPorts)