|
|
|
@ -75,11 +75,11 @@ class TestParsingMethods:
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
join_result = '''<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
|
<!------------------------------------------------------------------------------
|
|
|
|
|
<!--
|
|
|
|
|
Modified by Calculate Utilities 4.0
|
|
|
|
|
Processed template files:
|
|
|
|
|
/path/to/template
|
|
|
|
|
------------------------------------------------------------------------------->
|
|
|
|
|
-->
|
|
|
|
|
<channel name="xsettings" version="1.0">
|
|
|
|
|
<property name="Xft" type="empty">
|
|
|
|
|
<property name="Antialias" type="int" value="1"/>
|
|
|
|
@ -95,11 +95,11 @@ Processed template files:
|
|
|
|
|
|
|
|
|
|
def test_if_input_documents_are_an_original_document_with_calculate_header_and_a_template_the_add_header_flag_is_set_and_the_already_changed_flag_is_not_set__the_format_object_removes_calculate_header_from_original_document__joins_an_original_document_and_a_template_and_adds_the_calculate_header(self):
|
|
|
|
|
original_text = '''<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!------------------------------------------------------------------------------
|
|
|
|
|
<!--
|
|
|
|
|
Modified by Calculate Utilities 4.0
|
|
|
|
|
Processed template files:
|
|
|
|
|
/path/to/ancient/template
|
|
|
|
|
------------------------------------------------------------------------------->
|
|
|
|
|
-->
|
|
|
|
|
<channel name="xsettings" version="1.0">
|
|
|
|
|
<property name="Xft" type="empty">
|
|
|
|
|
<property name="Antialias" type="int" value="1"/>
|
|
|
|
@ -117,11 +117,11 @@ Processed template files:
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
join_result = '''<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
|
<!------------------------------------------------------------------------------
|
|
|
|
|
<!--
|
|
|
|
|
Modified by Calculate Utilities 4.0
|
|
|
|
|
Processed template files:
|
|
|
|
|
/path/to/template
|
|
|
|
|
------------------------------------------------------------------------------->
|
|
|
|
|
-->
|
|
|
|
|
<channel name="xsettings" version="1.0">
|
|
|
|
|
<property name="Xft" type="empty">
|
|
|
|
|
<property name="Antialias" type="int" value="1"/>
|
|
|
|
@ -137,11 +137,11 @@ Processed template files:
|
|
|
|
|
|
|
|
|
|
def test_if_input_documents_are_an_original_document_with_calculate_header_and_a_template_the_add_header_flag_is_set_and_the_already_changed_flag_is_set__the_format_object_joins_an_original_document_and_a_template_and_adds_the_calculate_header_with_a_template_paths_from_the_old_header_and_paths_to_a_current_template(self):
|
|
|
|
|
original_text = '''<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!------------------------------------------------------------------------------
|
|
|
|
|
<!--
|
|
|
|
|
Modified by Calculate Utilities 4.0
|
|
|
|
|
Processed template files:
|
|
|
|
|
/path/to/ancient/template
|
|
|
|
|
------------------------------------------------------------------------------->
|
|
|
|
|
-->
|
|
|
|
|
<channel name="xsettings" version="1.0">
|
|
|
|
|
<property name="Xft" type="empty">
|
|
|
|
|
<property name="Antialias" type="int" value="1"/>
|
|
|
|
@ -159,12 +159,12 @@ Processed template files:
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
join_result = '''<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
|
<!------------------------------------------------------------------------------
|
|
|
|
|
<!--
|
|
|
|
|
Modified by Calculate Utilities 4.0
|
|
|
|
|
Processed template files:
|
|
|
|
|
/path/to/ancient/template
|
|
|
|
|
/path/to/template
|
|
|
|
|
------------------------------------------------------------------------------->
|
|
|
|
|
-->
|
|
|
|
|
<channel name="xsettings" version="1.0">
|
|
|
|
|
<property name="Xft" type="empty">
|
|
|
|
|
<property name="Antialias" type="int" value="1"/>
|
|
|
|
|