def error(msg=""):
    return {"type": "error", "msg": msg}
Test a view that renders a template on GET with the template name as
dataset/ETHPy150Open IEEERobotics/bot/bot/lib/messages.py/error--crossover with--dataset/ETHPy150Open django/django/tests/generic_views/test_base.py/TemplateViewTest.test_get_template_attribute