def run_parse_basic(self, input_string, translation_index):
        path, resource = self.parse_string(input_string)
        assert_attributes_equal(
            resource.translations[translation_index],
            comments=['Sample comment'],
            key=self.key('Source String'),
            strings={None: 'Translated String'},
            fuzzy=False,
            order=translation_index,
        )

        if self.supports_source:
            assert_equal(resource.translations[translation_index].source, [('file.py', '1')])

        if self.supports_source_string:
            assert_attributes_equal(
                resource.translations[translation_index],
                source_string='Source String',
                source_string_plural=''
            )
Basic translation with a comment and source.
dataset/ETHPy150Open mozilla/pontoon/pontoon/sync/tests/formats/__init__.py/FormatTestsMixin.run_parse_basic