def METHOD_NAME(self):
    events = []
    class Test(unittest.IsolatedAsyncioTestCase):
        async def asyncSetUp(self):
            events.append('asyncSetUp')
        async def test_func(self):
            events.append('test')
            raise Exception()
            self.addAsyncCleanup(self.on_cleanup)
        async def asyncTearDown(self):
            events.append('asyncTearDown')
        async def on_cleanup(self):
            events.append('cleanup')
    test = Test("test_func")
    test.run()
    self.assertEqual(events, ['asyncSetUp', 'test', 'asyncTearDown'])