'After the sticky threads, threads should be sorted by the created
date of the last post.'

def test_thread_sorting(self):

    t1 = ThreadFactory(is_sticky=False)
    t1.post_set.create(creator=t1.creator, content='foo')
    t2 = ThreadFactory(is_sticky=False)
    t2.post_set.create(creator=t2.creator, content='bar')
    self.assertGreater(t2.last_post.created, t1.last_post.created)
