'Test that questions feeds with products and topics work.'

def test_question_feed_with_product_and_topic(self):

    p = ProductFactory()
    t = TopicFactory(product=p)
    url = urlparams(reverse('questions.list', args=[p.slug]), topic=t.slug)
    res = self.client.get(url)
    eq_(200, res.status_code)
    doc = pq(res.content)
    feed_links = doc('link[type="application/atom+xml"]')
    feed = feed_links[0]
    eq_(1, len(feed_links))
    eq_('Recently    updated    questions', feed.attrib['title'])
    eq_(urlparams('/en-US/questions/feed', product=p.slug, topic=t.slug), feed.attrib['href'])
    eq_(200, self.client.get(feed.attrib['href']).status_code)
