def test_thread_sorting(self):
        # After the sticky threads, threads should be sorted by the
        # created date of the last post.

        # Make sure the datetimes are different.
        PostFactory(created=timedelta(days=1) - datetime.now())
        PostFactory()
        Thread(is_sticky=True)

        threads = Thread.objects.filter(is_sticky=False)
        self.assert_(threads[0].last_post.created >
                     threads[1].last_post.created)
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_posts.py/PostTestCase.test_thread_sorting/swapped operands of `-`