'Sorting threads by last_post descendingly.'

def test_sorting_last_post_desc(self):

    t1 = ThreadFactory()
    t1.new_post(t1.creator, 'foo')
    t2 = ThreadFactory()
    t2.new_post(t2.creator, 'bar')
    threads = sort_threads(Thread.objects, 5, 1)
    self.assertGreaterEqual(threads[0].last_post.created, threads[1].last_post.created)
