def METHOD_NAME(self):
    # Sticky threads should come before non-sticky threads.
    t = ThreadFactory()
    yesterday = datetime.now() - timedelta(days=1)
    sticky = ThreadFactory(forum=t.forum, is_sticky=True, posts=[{"created": yesterday}])
    # The older sticky thread shows up first.
    self.assertEqual(sticky.id, Thread.objects.all()[0].id)