async def test_loop_is_running_in_async_context(self): """The event loop should be running in an async context.""" self.assertTrue(api.loop_is_running())
def test_loop_is_not_running_by_default(): assert not api.loop_is_running()
def test_loop_is_not_running_by_default(self): """The event loop should not be running by default.""" self.assertFalse(api.loop_is_running())
async def test_loop_is_running_in_async_test(): assert api.loop_is_running()