'Sorting threads by last_post descendingly.'

def test_sorting_last_post_desc(self):

    ThreadFactory(posts=[{}, {}, {}])
    PostFactory(created=(datetime.now() - timedelta(days=1)))
    threads = sort_threads(Thread.objects, 5, 1)
    self.assert_((threads[0].last_post.created >= threads[1].last_post.created))
