'Filter for locked and sticky threads.'

def test_discussion_filter_sticky_locked(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, 2)}
    response = self.client.get(reverse('search.advanced'), qs)
    result = json.loads(response.content)['results'][0]
    eq_(thread1.get_absolute_url(), result['url'])
