title: Test Flask render_template() context
body: <p>I have a Flask route that looks like this:</p>
  
  <pre><code>@app.route('/')                                                                 
  def home():                                                                                                                  
      return render_template(                                                     
          'home.html',                                                            
          greeting:&quot;hello&quot;                                       
      )                                                                           
  </code></pre>
  <p>How do I test that the <code>'home.html'</code> template was rendered, and that the <code>render_template()</code> context defined the <code>greeting</code> variable with a particular value?</p>
  <p>These should be (and probably are) pretty easy to test, but I'm really not sure how to do this with Flask and unittest.</p>