'Test getting the search view form kwargs.'

def test_get_form_kwargs(self):

    v = SearchView()
    v.request = self.request
    form_kwargs = v.get_form_kwargs()
    self.assertEqual(form_kwargs.get(u'data').get(u'q'), self.query)
    self.assertEqual(form_kwargs.get(u'initial'), {})
    self.assertTrue((u'searchqueryset' in form_kwargs))
    self.assertTrue((u'load_all' in form_kwargs))
