'Verify that /products/<slug> page renders topics.'

def test_product_landing(self):

    p = ProductFactory()
    l = QuestionLocale.objects.get(locale=settings.LANGUAGE_CODE)
    p.questions_locales.add(l)
    TopicFactory(slug=HOT_TOPIC_SLUG, product=p, visible=True)
    topics = TopicFactory.create_batch(11, product=p, visible=True)
    d = DocumentFactory(products=[p], topics=topics[:10])
    ApprovedRevisionFactory(document=d)
    self.refresh()
    url = reverse('products.product', args=[p.slug])
    r = self.client.get(url, follow=True)
    eq_(200, r.status_code)
    doc = pq(r.content)
    eq_(11, len(doc('#help-topics    li')))
    eq_(p.slug, doc('#support-search    input[name=product]').attr['value'])
