def setUp(self):
        """
        Create an L{Agent} wrapped around a fake reactor.
        """
        self.reactor = self.createReactor()
        self.agent = self.makeAgent()

        Create an L{Agent} wrapped around a fake reactor.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py