def test_tracerInstalled(self):
        """
        L{trial.Options} handles C{"--coverage"} by installing a trace
        hook to record coverage information.
        """
        options = trial.Options()
        options.parseOptions(["--coverage"])
        self.assertEqual(sys.gettrace(), options.tracer.globaltrace)

        L{trial.Options} handles C{"--coverage"} by installing a trace
        hook to record coverage information.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_script.py