Добавлен тест для формата KDE с содержаением xa0 символа вместо пробела

master
parent 4483e87285
commit 5d3be605dc

@ -388,3 +388,25 @@ pluginWhiteList=shell,bookmarks,locations
template_object = KDEFormat(template_text, '/path/to/template')
original_object.join_template(template_object)
assert original_object.document_text == join_result
def test_with_xa0_symbol_in_source_document(self):
original_text = '''[Test]
Name[pl]=Przechowalnia certyfikatów i\xa0kluczy
Comment[fr]=Trousseau de clés de GNOME\xa0: composant PKCS#11
NoShow=true
'''
template_text = '''[Test]
!NoShow=
'''
join_result = '''[Test]
Name[pl]=Przechowalnia certyfikatów i\xa0kluczy
Comment[fr]=Trousseau de clés de GNOME\xa0: composant PKCS#11
'''
original_object = KDEFormat(original_text, '/path/to/template')
template_object = KDEFormat(template_text, '/path/to/template')
original_object.join_template(template_object)
assert original_object.document_text == join_result

Loading…
Cancel
Save