def patchStartService(self):
        """
        Patch L{MultiService.startService} so we can capture usage and prevent
        actual starts.
        """
        self.serviceStarts = []

        def startService(service):
            self.serviceStarts.append(service)

        self.patch(MultiService, "startService", startService)

        Patch L{MultiService.startService} so we can capture usage and prevent
        actual starts.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/application/twist/test/test_twist.py