title: My Django test is failing due to csrf_token value?
body: <p><strong>I Think the two csrf value is not same that is why my test case is failing. How do i test the template is working good?</strong></p>
  <hr />
  <h2 id="fail-test_home_page_can_save_a_post_request-lists.tests.homepagetest">FAIL: test_home_page_can_save_a_POST_request (lists.tests.HomePageTest)</h2>
  <p>Traceback (most recent call last):
  File &quot;G:\dj_proj\ObeyTheTestingGoat\superlists\lists\tests.py&quot;, line 46, in te
  st_home_page_can_save_a_POST_request</p>
  <pre><code>    self.assertEqual(response.content.decode(), expect_html)
  AssertionError: '&lt;!DO[178 chars]lue=&quot;mksJcHsmmhRKsu96jGJaqz7sh593cCLcG8AEkK5CC[2
  13 chars]tml&gt;' != '&lt;!DO[178 chars]lue=&quot;kGamofdgnvgVD2MfLaIZKrLQ99WOYjzlEuihwiQwD
  [213 chars]tml&gt;'
  </code></pre>
  <hr />
  <p>Ran 4 tests in 0.015s</p>
  <p>FAILED (failures=1)
  Destroying test database for alias 'default'...</p>
  <hr />
  <pre><code>    def test_home_page_can_save_a_POST_request(self):
          request = HttpRequest()
          request.method = 'POST'
          request.POST['item_text'] = 'A new list item'
  
          response = views.home_page(request)
  
          self.assertIn('A new list item', response.content.decode())
          
          expect_html = render_to_string('home.html', context={'new_item_text':'A new list item'}, request=request)
          self.assertEqual(response.content.decode(), expect_html)
  </code></pre>