def run_save_remove(self, input_string, expected_string, source_string=None, remove_cb=None):
        path, resource = self.parse_string(input_string, source_string=source_string)

        def default_remove(res):
            translation = res.translations[0]
            translation.strings = {}

        (remove_cb or default_remove)(resource)
        resource.save(self.locale)

        self.assert_file_content(path, expected_string)
Test saving a removed entity with a single translation.
dataset/ETHPy150Open mozilla/pontoon/pontoon/sync/tests/formats/__init__.py/FormatTestsMixin.run_save_remove