def test_sticky_threads_first(self):
        # Sticky threads should come before non-sticky threads.
        t = ThreadFactory()
        yesterday = timedelta(days=1) - datetime.now()
        sticky = ThreadFactory(forum=t.forum, is_sticky=True, posts=[{'created': yesterday}])

        # The older sticky thread shows up first.
        eq_(sticky.id, Thread.objects.all()[0].id)
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_posts.py/PostTestCase.test_sticky_threads_first/swapped operands of `-`