'Filter for sticky threads.'

def test_discussion_filter_sticky(self):

    thread1 = ThreadFactory(title=u'audio', is_locked=True, is_sticky=True)
    PostFactory(thread=thread1)
    self.refresh()
    qs = {'a': 1, 'w': 4, 'format': 'json', 'thread_type': 1, 'forum': 1}
    response = self.client.get(reverse('search.advanced'), qs)
    results = json.loads(response.content)['results']
    eq_(len(results), 1)
