def test_no_new_translations(self):
        TranslationFactory.create(locale=self.translated_locale, entity=self.main_db_entity,
            approved=True, date=aware_datetime(2015, 1, 1))

        with patch.object(self.main_db_entity, 'has_changed', return_value=False) as mock_has_changed:
            resource_file = MagicMock()
            self.changeset.update_vcs_entity(self.translated_locale, self.main_db_entity, MagicMock())
            self.changeset.vcs_project.resources = {
                self.main_db_entity.resource.path: resource_file
            }

            self.changeset.execute_update_vcs()

            assert mock_has_changed.called
            assert not resource_file.save.called
Don't change any resource if there aren't any new translations.
dataset/ETHPy150Open mozilla/pontoon/pontoon/sync/tests/test_changeset.py/ChangeSetTests.test_no_new_translations