'Test the generic SearchView response.'

def test_search_view_response(self):

    response = SearchView.as_view()(request=self.request)
    context = response.context_data
    self.assertEqual(context[u'query'], self.query)
    self.assertEqual(context.get(u'view').__class__, SearchView)
    self.assertEqual(context.get(u'form').__class__, ModelSearchForm)
    self.assertIn(u'page_obj', context)
    self.assertNotIn(u'page', context)
