'If a document is requested in a locale it is not translated
to, it should fire a "Not Localized" GA event.'

def test_custom_event_not_translated(self):

    r = RevisionFactory(is_approved=True, is_ready_for_localization=True)
    url = reverse('wiki.document', args=[r.document.slug], locale='fr')
    response = self.client.get(url)
    eq_(200, response.status_code)
    doc = pq(response.content)
    assert ('"Not    Localized"' in doc('body').attr('data-ga-push'))
    assert ('"Not    Updated"' not in doc('body').attr('data-ga-push'))
