'Posts should be sorted chronologically.'

def test_post_sorting(self):

    t = ThreadFactory()
    t.post_set.create(creator=t.creator, content='foo')
    t.post_set.create(creator=t.creator, content='bar')
    posts = t.post_set.all()
    for i in range((len(posts) - 1)):
        self.assertLessEqual(posts[i].created, posts[(i + 1)].created)
