def test_cleanReactorRemovesSelectables(self):
        """
        The Janitor will remove selectables during reactor cleanup.
        """
        reactor = StubReactor([])
        jan = _Janitor(None, None, reactor=reactor)
        jan._cleanReactor()
        self.assertEqual(reactor.removeAllCalled, 1)

        The Janitor will remove selectables during reactor cleanup.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_util.py