def test_last_post_link_has_post_id(self):
        p = PostFactory()

        response = get(self.client, 'forums.forums')
        doc = pq(response.content)
        last_post_link = doc('ol.forums div.last-post a:not(.username)')[0]
        href = last_post_link.attrib['href']
        eq_(href.split('#')[1], 'post-%s' % p.id)
Make sure the last post url links to the last post (#post-<id>).
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_templates.py/ForumsTemplateTests.test_last_post_link_has_post_id