'If a document\'s parent has major edits and the document has
not been updated, it should fire a "Not Updated" GA event.'

def test_custom_event_majorly_out_of_date(self):

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