import asyncio


def async_test(func):
    """Decorator allowing coroutines to be called by synchronous functions."""

    def wrapper(*args):
        loop = asyncio.get_event_loop()
        loop.run_until_complete(func(*args))

    return wrapper