'Make sure templates aren\'t included in the All Articles count.'

def test_templates_and_docs_disjunct(self):

    t = TranslatedRevisionFactory(document__locale='de', is_approved=True)
    eq_(1, l10n_overview_rows('de')['all']['numerator'])
    eq_(1, l10n_overview_rows('de')['all']['denominator'])
    t.document.parent.title = t.document.title = 'Template:thing'
    t.document.parent.category = TEMPLATES_CATEGORY
    t.document.parent.save()
    t.document.save()
    eq_(0, l10n_overview_rows('de')['all']['numerator'])
    eq_(0, l10n_overview_rows('de')['all']['denominator'])
