def setUp(self):
        """
        Construct a stub server, a stub factory, and a
        L{StreamServerEndpointService} to test.
        """
        self.fakeServer = FakeServer()
        self.factory = Factory()
        self.svc = StreamServerEndpointService(self.fakeServer, self.factory)

        Construct a stub server, a stub factory, and a
        L{StreamServerEndpointService} to test.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/application/test/test_internet.py