def test_templates_and_docs_disjunct(self):
        t = TranslatedRevisionFactory(document__locale='de', is_approved=True)
        # It shows up in All when it's a normal doc:
        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
        # is_template will be automatically set for both templates, and so will
        # the child document's category.
        t.document.parent.save()
        t.document.save()
        # ...but not when it's a template:
        eq_(0, l10n_overview_rows('de')['all']['numerator'])
        eq_(0, l10n_overview_rows('de')['all']['denominator'])
Make sure templates aren't included in the All Articles count.
dataset/ETHPy150Open mozilla/kitsune/kitsune/dashboards/tests/test_readouts.py/L10NOverviewTests.test_templates_and_docs_disjunct