Иванов Денис 3 years ago
commit 09085c1938

@ -412,3 +412,23 @@ Comment[fr]=Trousseau de clés de GNOME\xa0: composant PKCS#11
template_object = KDEFormat(template_text, '/path/to/template')
original_object.join_template(template_object)
assert original_object.document_text == join_result
def test_with_space_at_end_of_parameter(self):
original_text = '''[Test]
Name[pl]=Hello
NoShow=true
'''
template_text = '''[Test]
!NoShow=
'''
join_result = '''[Test]
Name[pl]=Hello
'''
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