def __init_subclass__(cls, **kwargs):
    '\n        Convert test coroutines to test functions.\n\n        This supports asychronous tests transparently.\n\n        '
    super().__init_subclass__(**kwargs)
    for name in unittest.defaultTestLoader.getTestCaseNames(cls):
        test = getattr(cls, name)
        if asyncio.iscoroutinefunction(test):
            setattr(cls, name, cls.convert_async_to_sync(test))
Convert test coroutines to test functions.

This supports asychronous tests transparently.
def __init_subclass__(cls, **kwargs):
    '\n        Convert test coroutines to test functions.\n\n        This supports asychronous tests transparently.\n\n        '
    super().__init_subclass__(**kwargs)
    for name in unittest.defaultTestLoader.getTestCaseNames(cls):
        test = getattr(cls, name)
        if asyncio.iscoroutinefunction(test):
            setattr(cls, name, cls.convert_async_to_sync(test))