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)
    with mock.patch('asyncio.coroutines._is_debug_mode', lambda: True):
        asyncio.run(main(True))
        asyncio.run(main(False), debug=False)