def METHOD_NAME(self):
    """
    Test saving changes to an entity with a single translation.
    Make sure the target-language attribute is set when not present.
    """
    attr = f'target-language="{self.locale.code}"'
    input_string = self.generate_xliff(
        dedent(
            """
        <trans-unit id="Source String Key">
            <source>Source String</source>
            <target>Translated String</target>
            <note>Comment</note>
        </trans-unit>
    """
        )
    )
    expected_string = self.generate_xliff(
        dedent(
            """
        <trans-unit id="Source String Key" xml:space="preserve">
            <source>Source String</source>
            <target>New Translated String</target>
            <note>Comment</note>
        </trans-unit>
    """
        ),
        attr=attr,
    )
    super().run_save_basic(
        input_string, expected_string, source_string=input_string
    )