def test_sorting_replies(self):
        """Sorting threads by replies."""
        ThreadFactory(posts=[{}, {}, {}])
        ThreadFactory()
        threads = sort_threads(Thread.objects, 4)
        self.assert_(threads[0].replies <= threads[1].replies)
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_posts.py/PostTestCase.test_sorting_replies/original