title: Django: issue with unit-test ListView and assertContains
body: <p>I am adapting the unit tests from the official Django 1.5 tutorial. I am trying to test an empty context on a ListView. I get the following error:</p>
  
  <pre><code>AssertionError: Couldn't find 'No persons are available' in response. 
  </code></pre>
  
  <p>And this is my ListView code:</p>
  
  <pre><code>class RsvpListView(generic.ListView):
      template_name = 'rsvp_list.html'
      context_object_name = 'rsvplist'
  
      def get_queryset(self):
          return Person.objects.all()
  </code></pre>
  
  <p>Here is my TestCase method:</p>
  
  <pre><code>   def test_rvsp_list_view_with_no_persons(self):
  
          response = self.client.get(reverse('myapp:rsvp_view'))
          self.assertEqual(response.status_code,200)
  
          self.assertContains(response,"No persons are available.")
          self.assertQuerysetEqual(response.context['rsvplist'],[])
  </code></pre>
  
  <p>But in the official tutorial the Polls had the equivalent line (<a href="https://docs.djangoproject.com/en/dev/intro/tutorial05/#testing-our-new-view" rel="nofollow">https://docs.djangoproject.com/en/dev/intro/tutorial05/#testing-our-new-view</a>):</p>
  
  <pre><code>  self.assertContains(response,"No polls are available.")
  </code></pre>
  
  <p>I don't know where "No polls are available" is ever stored in the response from the views method that the tutorial provides but for some reason it passes - mine doesn't though.</p>
  
  <p>What am I missing in my test method so it passes too?</p>