'Make sure Edit sidebar link is hidden for obsolete articles.'

def test_obsolete_hide_edit(self):

    d = DocumentFactory(is_archived=True)
    r = self.client.get(d.get_absolute_url())
    doc = pq(r.content)
    assert (not doc('#doc-tabs    li.edit'))
