def test_home(self):

        # Create some topics and products
        ProductFactory.create_batch(4)

        # GET the home page and verify the content
        r = self.client.get(reverse('home'), follow=True)
        eq_(200, r.status_code)
        doc = pq(r.content)
        eq_(4, len(doc('#products-and-services li')))
Verify that home page renders products.
dataset/ETHPy150Open mozilla/kitsune/kitsune/landings/tests/test_templates.py/HomeTestCase.test_home