'The edit-post template should render.'

def test_edit_thread_template(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    t = ThreadFactory(creator=u, is_locked=False)
    p = t.new_post(creator=u, content='foo')
    res = get(self.client, 'wiki.discuss.edit_post', args=[p.thread.document.slug, p.thread.id, p.id])
    doc = pq(res.content)
    eq_(len(doc('form.edit-post')), 1)
