def test_search_products(self):
        p = ProductFactory(title=u'Product One', slug='product')
        doc = DocumentFactory(title=u'cookies', locale='en-US', category=10, products=[p])
        RevisionFactory(document=doc, is_approved=True)

        self.refresh()

        response = self.client.get(
            reverse('search.advanced'),
            {'a': '1', 'product': 'product', 'q': 'cookies', 'w': '1'})

        assert "We couldn't find any results for" not in response.content
        eq_(200, response.status_code)
        assert 'Product One' in response.content
dataset/ETHPy150Open mozilla/kitsune/kitsune/search/tests/test_search_advanced.py/AdvancedSearchTests.test_search_products/original