'Verify /products/<product slug>/<topic slug> renders articles.'

def test_document_listing(self):

    p = ProductFactory()
    t1 = TopicFactory(product=p)
    ApprovedRevisionFactory.create_batch(3, document__products=[p], document__topics=[t1])
    ApprovedRevisionFactory()
    self.refresh()
    url = reverse('products.documents', args=[p.slug, t1.slug])
    r = self.client.get(url, follow=True)
    eq_(200, r.status_code)
    doc = pq(r.content)
    eq_(3, len(doc('#document-list    >    ul    >    li')))
    eq_(p.slug, doc('#support-search    input[name=product]').attr['value'])
