def test_extra_locales(self):
        update_translated_resources(self.db_project, self.vcs_project,
                             self.changeset, self.translated_locale)

        assert_true(TranslatedResource.objects.filter(
            resource=self.main_db_resource, locale=self.translated_locale
        ).exists())

        assert_true(TranslatedResource.objects.filter(
            resource=self.other_db_resource, locale=self.translated_locale
        ).exists())

        assert_false(TranslatedResource.objects.filter(
            resource=self.main_db_resource, locale=self.inactive_locale
        ).exists())

        assert_false(TranslatedResource.objects.filter(
            resource=self.other_db_resource, locale=self.inactive_locale
        ).exists())
Only create/update the TranslatedResource object for active locales,
dataset/ETHPy150Open mozilla/pontoon/pontoon/sync/tests/test_core.py/UpdateTranslatedResourcesTests.test_extra_locales