'Test the generic SearchView form is invalid.'

def test_search_view_form_invalid(self):

    v = SearchView()
    v.kwargs = {}
    v.request = self.request
    form = v.get_form(v.get_form_class())
    response = v.form_invalid(form)
    context = response.context_data
    self.assertTrue((u'query' not in context))
