def _(render_to_response): decorated = _viewier_dec(view, "the_template.html") result = decorated(request) assert render_to_response.called_with("the_template.html") assert render_to_response.call_args[0][1]['x'] == 123
def _(render_to_response): decorated = _viewier_dec(suspicious_function, "nothing.html") result = decorated(request) assert render_to_response.called_with("culet/error.html")