'If there are no results, verify ga-push data attr on body.'

def test_ga_zero_results_event(self):

    doc = DocumentFactory(title=u'audio', locale=u'en-US', category=10)
    doc.products.add(ProductFactory(title=u'firefox', slug=u'desktop'))
    RevisionFactory(document=doc, is_approved=True)
    self.refresh()
    response = self.client.get(reverse('search'), {'q': 'audio'})
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_('[]', doc('body').attr('data-ga-push'))
    response = self.client.get(reverse('search'), {'q': 'piranha'})
    eq_(200, response.status_code)
    doc = pq(response.content)
    assert ('"Zero    Search    Results"' in doc('body').attr('data-ga-push'))
