Beispiel #1
0
 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())
Beispiel #2
0
def test_loop_is_not_running_by_default():
    assert not api.loop_is_running()
Beispiel #3
0
 def test_loop_is_not_running_by_default(self):
     """The event loop should not be running by default."""
     self.assertFalse(api.loop_is_running())
Beispiel #4
0
async def test_loop_is_running_in_async_test():
    assert api.loop_is_running()