def test_exitConstant(self):
        """
        L{exit} given a L{ValueConstant} status code passes the corresponding
        value to L{sys.exit}.
        """
        status = ExitStatus.EX_CONFIG
        exit(status)
        self.assertEqual(self.exit.arg, status.value)

        L{exit} given a L{ValueConstant} status code passes the corresponding
        value to L{sys.exit}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/application/runner/test/test_exit.py