Shortcut to access the application's config in your class
    :param key: The key to access
    :param default: The default value when None
    :returns mixed:

def config(key, default=None):
    """
    Shortcut to access the application's config in your class
    :param key: The key to access
    :param default: The default value when None
    :returns mixed:
    """
    return Mocha._app.config.get(key, default) if Mocha._app else default