'This tests whether forum posts show up in searches'

def test_forums_search(self):

    thread1 = ThreadFactory(title=u'crash')
    PostFactory(thread=thread1)
    self.refresh()
    response = self.client.get(reverse('search.advanced'), {'author': '', 'created': '0', 'created_date': '', 'updated': '0', 'updated_date': '', 'sortby': '0', 'a': '1', 'w': '4', 'q': 'crash', 'format': 'json'})
    eq_(200, response.status_code)
    content = json.loads(response.content)
    eq_(content['total'], 1)
