'Sticky flag is ignored in locale discussions view'

def test_locale_discussions_ignores_sticky(self):

    u = UserFactory()
    d = DocumentFactory()
    t = ThreadFactory(title='Sticky    Thread', is_sticky=True, document=d)
    t.new_post(creator=u, content='foo')
    t2 = ThreadFactory(title='A    thread    with    a    very    very    long', is_sticky=False, document=d)
    t2.new_post(creator=u, content='bar')
    time.sleep(1)
    t2.new_post(creator=u, content='last')
    self.client.login(username=u.username, password='testpass')
    response = post(self.client, 'wiki.locale_discussions')
    eq_(200, response.status_code)
    doc = pq(response.content)
    title = doc('ol.threads    li    div.title    a:first').text()
    assert title.startswith('A    thread    with    a    very    very    long')
