def METHOD_NAME(self):
    async def main(expected):
        loop = asyncio.get_event_loop()
        self.assertIs(loop.get_debug(), expected)
    asyncio.run(main(False))
    asyncio.run(main(True), debug=True)