'Create docs with topical parent/child rel, verify breadcrumbs.'

@pytest.mark.breadcrumbs
def test_document_breadcrumbs(self):

    (d1, d2) = create_topical_parents_docs()
    response = self.client.get(d1.get_absolute_url())
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(d1.title, doc('main#content    div.document-head    h1').text())
    eq_(d1.title, doc('nav.crumbs    li:last-child').text())
    response = self.client.get(d2.get_absolute_url())
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(d2.title, doc('main#content    div.document-head    h1').text())
    crumbs = ('MDN    %s    %s' % (d1.title, d2.title))
    eq_(crumbs, doc('nav.crumbs').text())
