Make render_template mocking clearer

@nedbat I forgot to add this change to #487.
@brianhw: Can you review as well?